Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$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