title: Invoking Function in PowerShell via String
body: <p>I'm trying to Invoke a Powershell function "dynamically" using a string. Example</p>
  
  <pre><code>$functionToInvoke = "MyFunctionName";
  
  Invoke-Function $functionToInvoke $arg1 $arg2  #  &lt;- what I would like to do
  </code></pre>
  
  <p>Is there any way to achieve this with PowerShell 2.0 ?</p>