title: Calling a specific PowerShell function from the command line
body: <p>I have a PowerShell script that contains several functions. How do I invoke a specific function from the command line?</p>
  
  <p>This doesn't work:</p>
  
  <pre><code>powershell -File script.ps1 -Command My-Func
  </code></pre>