ps/Modules/Alkami.PowerShell.Common/Public/Get-ParentExecutionName.ps1

12 lines
208 B
PowerShell
Raw Permalink Normal View History

2023-05-30 22:51:22 -07:00
function Get-ParentExecutionName {
<#
.SYNOPSIS
Get the name of the parent executing function
#>
[CmdletBinding()]
Param()
return (Get-Variable MyInvocation -Scope 2).Value.MyCommand.Name
}