in simulating it, your ProcessBuilder is not building the process anymore. It is running the process and building only the second one. This is wrong.
Thus, you second process does not have the environment variables