Skip to content

Instantly share code, notes, and snippets.

@a5ync
Created April 20, 2016 00:53
Show Gist options
  • Save a5ync/0723ff17a61ced03b791931a6c29ebb1 to your computer and use it in GitHub Desktop.
Save a5ync/0723ff17a61ced03b791931a6c29ebb1 to your computer and use it in GitHub Desktop.
Running script details - current path, name of the script (this)
## ScriptTest.ps1
Write-Host "InvocationName:" $MyInvocation.InvocationName
Write-Host "Path:" $MyInvocation.MyCommand.Path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment