ps/Modules/Alkami.PowerShell.Common/Public/Get-ParentExecutionName.ps1
2023-05-30 22:51:22 -07:00

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
}