PS errors might swallow inner exceptions. Ensure `pipeline.Error` stream is captured and JSON-ified (e.g., via `PSDataCollection<ErrorRecord>`). Also, validate payloads pre-execution (e.g., `JsonSerializer` with schema for script + params).
PS errors might swallow inner exceptions. Ensure
pipeline.Errorstream is captured and JSON-ified (e.g., viaPSDataCollection<ErrorRecord>).Also, validate payloads pre-execution (e.g.,
JsonSerializerwith schema for script + params).