Process is not in the iOS SDK, and the alias stood outside any guard
-- so a phone build reached for a type that is not there. Say where it
belongs, the way everything that uses it already does.
Windows calls it Path, so looking the variable up as PATH found
nothing and set a second one beside it holding only the installation
directory. Names are matched without regard to case, so the emulators
were handed whichever came first and could not see the libraries the
app had lined up for them.
Read and write the name that is already there, and lay the block out
the way CreateProcessW asks, so a pair that differs only in case
cannot change places.
Foundation calls CreateProcessW with CREATE_UNICODE_ENVIRONMENT and
nothing else, and offers no way to add to that. The app has no
console of its own, so every console child it started -- an
emulator, qemu-img, the agent CLI -- was given a fresh command
prompt to look at.
Spawn through ChildProcess instead, which asks for CREATE_NO_WINDOW
on Windows and is Process everywhere else.