Preserve the environment variables when running a command from service script.