[code language=”powershell”]
$currentPath = Split-Path ((Get-Variable MyInvocation -Scope 0).Value).MyCommand.Path
[/code]
My Contribution / Reference / Spare Time
[code language=”powershell”]
$currentPath = Split-Path ((Get-Variable MyInvocation -Scope 0).Value).MyCommand.Path
[/code]