env 1) is a coreutil command line that gives the context execution
It's used generally in a shebang
In Bash, to send a variable or a function to another sub-process environment, you use the export command.