title: Running a powershell command using full path and arguments from command line
body: <p>I have a script that sits in <code>Program Files</code> folder and accepts arguments: <code>verbose</code> and <code>restart</code>
  Running it from its folder works perfectly:</p>
  
  <pre><code>powershell ./&lt;file.ps1&gt; -verbose:$True -restart
  </code></pre>
  
  <p>Trying to run it using full path is where I have issues:</p>
  
  <pre><code>powershell &amp; "C:\Program Files\Folder\&lt;file.ps1&gt; -verbose:$True -restart"
  </code></pre>
  
  <p>Above command doesn't run the script; Instead it's opening the PS command prompt and when exiting it, it opens the script in notepad.<br>
  I also tried to put each variable in a separate quote but that didn't work as well.</p>
  
  <p>I found a workaround by using <code>progra~1</code> instead of <code>Program Files</code> but I'd like to solve the issue the proper way.<br><br>
  What am I missing?</p>