Enhancement: write certain variables to the environment of the shell