How can I retrieve the name of the function that is currently running in powershell? Here is an example of what I want:
Function write-FunctionName
{
write-host "The name of this function is: *SomethingGoesHereButWhat?*"
}
Then when I execute it, it will display this:
>write-FunctionName
The name of this function is: write-FunctioName
>
Can this be done? If so how?