13 lines
216 B
PowerShell
13 lines
216 B
PowerShell
|
function Get-ParentFunctionName {
|
||
|
<#
|
||
|
.SYNOPSIS
|
||
|
Get the name of the function that called this one
|
||
|
#>
|
||
|
[CmdletBinding()]
|
||
|
[OutputType([System.String])]
|
||
|
Param()
|
||
|
|
||
|
return (Get-PSCallStack)[1].Command
|
||
|
}
|
||
|
|