title: How to start PowerShell script from BAT file with proper Working Directory?
body: <p>I'm trying to create bat script that can start PowerShell script named the same as bat file in proper working directotry.</p>
  
  <p>This is what I got:</p>
  
  <pre><code>@ECHO OFF
  PowerShell.exe -NoProfile -Command "&amp; {Start-Process PowerShell.exe -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""%~dpn0.ps1""' -WorkingDirectory '%~dp0' -Verb RunAs}"
  PAUSE
  </code></pre>
  
  <p>Passing working directory this way does not work.</p>
  
  <p>How to make script that will pass proper working directroy and also command line arguments?</p>