You can use setenv to alter the unix environment ERT is running in. This is probably most relevant for setting up the environment for the external jobs invoked by ERT. It is possible to use $VAR to refer to an existing environment variable.