proc_open has environment parameter that could be used