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