title: Run PHP CLI from Windows Powershell ISE
body: <p>This question is regarding dollar signs "$" <code>$</code> in Windows PowerShell ISE.</p>
  
  <p>I have PHP CLI and want to run one liner command scripts from the prompt in Windows PowerShell ISE.</p>
  
  <p><code>php -r "$foo = 'foo';"</code></p>
  
  <p>Just returns <code>Parse error: parse error in Command line code on line 1</code>  and I've narrowed it down to the pesky dollar sign which is significant in PowerShell.  Can I escape it somehow?</p>
  
  <p>I also tried </p>
  
  <p><code>php -r '$foo = "foo";'</code> </p>
  
  <p>and get </p>
  
  <p><code>Notice: Use of undefined constant foo - assumed 'foo' in Command line code on line 1</code></p>