title: Running Python in PowerShell?
body: <p>I am attempting to learn the very basics of Python using the guide <em>"Learn Python the hard way"</em> by Zed A. Shaw. The problem that I am having is that I can run Python scripts, but only when using <code>.\</code> in front of the name. This opens up CMD for a split second and then closes.</p>
  
  <p>If I attempt to run the file it returns that the file is not an operable program file, script, etc..</p>
  
  <p>I've found multiple questions on Stack Overflow that relate to this question, but none of the solutions have worked for me.</p>
  
  <p>Two things I've tried:</p>
  
  <pre><code>[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27", "User")
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$env:PATH =$env:PATH+";."
  </code></pre>
  
  <p>Source:
  (<a href="https://stackoverflow.com/questions/9792897/">How do you remove the PowerShell requirement that scripts and executables be preceded by &quot;.\&quot;?</a>)</p>
  
  <p>When I check the environment variable PATH it has the correct path within it, so what other things could be causing this?</p>