There are times when you want to save environment variables to a script for easy access
But when you actually execute it, you’ll soon find that the environment variables are kept only while the script is running.
Simple solution: add another dot in front of the script command.
That will stop the environment variable from resetting after the script has finished.