title: Calling PowerShell from Python using Notepad++
body: <p>I thought it might be time to start using <code>PowerShell</code> instead of <code>cmd</code>. I currently run Python scripts from Notepad++ with the following commnad:</p>
  
  <p><code>cmd /c cd &amp;quot;$(CURRENT_DIRECTORY)&amp;quot; &amp;amp;python -i &amp;quot;$(FILE_NAME)&amp;quot;</code></p>
  
  <p>How should I modify this to get the same behaviour in <code>PowerShell</code> please?</p>
  
  <p>I tried</p>
  
  <p><code>powershell -noexit cd &amp;quot;$(CURRENT_DIRECTORY)&amp;quot; &amp;amp;python -i &amp;quot;$(FILE_NAME)&amp;quot;</code></p>
  
  <p>but I got an error about ampersands. I know very little about <code>PowerShell</code> or <code>cmd</code> in general - I just use them to run my Python scripts.</p>