MyITGuy
8/16/2016 - 3:49 PM

PowerShell: Current Script/Function Name (Scope)

PowerShell: Current Script/Function Name (Scope)

$MyInvocation.MyCommand.Name

Write-Verbose "Script/Function (Scope): $($MyInvocation.MyCommand.Name)"