The command and arguments to execute.
Additional environment variables to merge with process.env.
When true, returns stdout as a string instead of void.
The captured stdout string if captureOutput is true, otherwise void.
If stdout contains any substring in constants.FORCED_ERRORS.
Execute a shell command with custom environment variables, stdout/stderr filtering for known warnings and forced errors, and optional output capture.