Run some code with a specific environment. Resets the environment back to what it was at the end of the code.
[Validate]