12 lines
208 B
PowerShell
12 lines
208 B
PowerShell
function Get-ParentExecutionName {
|
|
<#
|
|
.SYNOPSIS
|
|
Get the name of the parent executing function
|
|
#>
|
|
[CmdletBinding()]
|
|
Param()
|
|
|
|
return (Get-Variable MyInvocation -Scope 2).Value.MyCommand.Name
|
|
}
|
|
|