title: Powershell not executing from CMD (Batch) script
body: <p>There are quite some questions asked already regarding this issue, but none of the answers resolved mine.</p>
  
  <p>I wrote following batch script:</p>
  
  <pre><code>powershell.exe -executionpolicy bypass  -file "./myps.ps1"
  </code></pre>
  
  <p>I saved the file as <code>autorun.cmd</code></p>
  
  <p>Whenever I double-click the cmd file, nothing happens, CLI quickly shows up and closes but powershell was not executed.</p>
  
  <p>If I run the same command directly in CLI, it works.</p>
  
  <p>I am really confused on what's going on here. Any help would be appreciated.</p>