Spawns a new process, optionally assigning it an arbitrary set of standard input, output, and error streams.
The function returns immediately, leaving the spawned process to execute in parallel with its parent.
The spawned process is detached from its parent, so you should not wait on the returned pid.
An array which contains the program name as the zeroth element and any command-line arguments in the following elements.
The standard input stream of the spawned process.
The standard output stream of the spawned process.
The standard error stream of the spawned process.
Additional environment variables for the child process.
Flags that control process creation. Same as for spawnProcess.
The working directory for the new process.
Pointer to variable that will get pid value in case spawnProcessDetached succeed. Not used if null.