title: Passing parameters to powershell script
body: <p>I'm trying to run a powershell script from the run dialog (will be used as a scheduled task), and I'm having troubles passing parameters.</p>
  
  <p>The script will take in two parameters, named title and msg.
  The script is located in: <code>D:\Tasks Scripts\Powershell\script.ps1</code></p>
  
  <p>This is what I'm trying to do:</p>
  
  <pre><code>powershell.exe -noexit 'D:\Tasks Scripts\Powershell\script.ps1' -title 'Hello world' -msg 'This is a test message'
  </code></pre>
  
  <p>But it fails upon reading the parameters.</p>
  
  <p>Running <code>.\script.ps1 -title 'Hello world' -msg 'This is a test message'</code> on powershell works fine.</p>