putenv/2

putenv(+ E,+ S)*

Set environment variable E to the value S. If the environment variable E does not exist, create a new one. Both the environment variable and the value must be atoms.