title: Powershell script not firing from batch file
body: <p>I've been trying to launch a simple powershell script from a batch file. After looking online the advice is to set the policy using Set-ExecutionPolicy.</p>
  
  <p>I've done this and using Get-ExecutionPolicy the policy has been changed.</p>
  
  <p>However running this batch file results in an 'Open With' dialog rather than the execution of the script.</p>
  
  <p>Batch:</p>
  
  <pre><code>%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe ^&amp;'./script.psl'
  </code></pre>
  
  <p>Powershell:</p>
  
  <pre><code>Write-Host "This is a message"
  </code></pre>
  
  <p>I have sampled on both Windows 7 and Server 2008 R2. Both have same result. What am I missing?</p>