I know. I use PATH instead on Windows and it works.
The only problem is this STDIN being multiplexed.
edit: actually it's not even for the PATH environment variable that I need the exec, it's for setting an environment variable that can be seen by a dynamic library called by my script.