run_command
env
You can pass environment object to run_command, just like to test:
environment
test
env = environment() env.set('FOO', 'bar') run_command('command', 'arg1', 'arg2', env: env)