This is a wrapper function for NodeJS spawn. Defaults stdio to inherit so that output is visible in the console,
but note that this means stdout and stderr will not be available in the returned SpawnResult. To hide the output
from the console but collect the stdout and stderr in the SpawnResult, use stdio: 'pipe'.
When spawning long-running processes, use spawnAsyncLongRunning instead so that unexpected
termination of the parent process will not orphan the child process tree on windows.
Warning: Do NOT use this for generating commands dynamically from user input as it could be used to execute arbitrary code.
This is meant solely for building up known commands that are not made up of unsanitized user input, and only at compile time.
See winInstallCert and winUninstallCert for examples of taking user input and inserting it safely into known commands.
This is a wrapper function for NodeJS spawn. Defaults stdio to inherit so that output is visible in the console, but note that this means stdout and stderr will not be available in the returned SpawnResult. To hide the output from the console but collect the stdout and stderr in the SpawnResult, use stdio: 'pipe'.
When spawning long-running processes, use spawnAsyncLongRunning instead so that unexpected termination of the parent process will not orphan the child process tree on windows.
Warning: Do NOT use this for generating commands dynamically from user input as it could be used to execute arbitrary code. This is meant solely for building up known commands that are not made up of unsanitized user input, and only at compile time. See winInstallCert and winUninstallCert for examples of taking user input and inserting it safely into known commands.