title: Powershell quote a command
body: <p>I need to run a command as a variable. I am doing</p>
  <pre><code>&gt;$exec = &quot;C:\Windows\system32\notepad.exe&quot;
  &gt; $exec &quot;C:\temp\test.txt&quot;
  At line:1 char:7
  + $exec &quot;C:\temp\test.txt&quot;
  +       ~~~~~~~~~~~~~~~~~~
  Unexpected token '&quot;C:\temp\test.txt&quot;' in expression or statement.
      + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
      + FullyQualifiedErrorId : UnexpectedToken
  </code></pre>
  <p>What is missing?</p>