Ends localization of environment changes in a script and restores environment variables to their previous values.
Endlocal