title: How to save a function into a variable?
body: <p>How to save a function into a variable?</p>
  
  <pre><code>function sayHello {
      write-host Hello, world!
  }
  
  $a = sayHello
  </code></pre>
  
  <p>Then, I want to call <code>$a</code>.</p>
  
  <p>Another example:</p>
  
  <pre><code>$a = get-childItem
  $a -name
  </code></pre>