Created
April 2, 2020 00:19
-
-
Save chriskuech/78fb1c63c88aa219f599e50e55271349 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ErrorActionPreference = "Stop" | |
Push-Location "./path/I/need/to/be/in" | |
try { | |
# do something here | |
} finally { | |
Pop-Location | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment