title: How to run an application as "run as administrator" from the command prompt?
body: <p>I have a batch file called <code>test.bat</code>. I am calling the below instructions in the <code>test.bat</code> file:</p>
  
  <pre><code>start /min powershell.exe %sysdrive%\testScripts\testscript1.ps1
  </code></pre>
  
  <p>When I run this through the command prompt, my testscript is running successfully. I want to run it as administrator (as if I have created a desktop shortcut and run as administrator. It shouldn't prompt for any username or password).</p>
  
  <p>I have tried adding <code>/elevate</code> and <code>/NOUAC</code> parameters in the above <code>test.bat</code>, but no luck. How do I fix this issue?</p>
  
  <p>I know how to do it manually, but I want this to be executed from the command prompt.</p>
  
  <p>(By <a href="https://stackoverflow.com/users/223837/marnix-klooster">Marnix Klooster</a>): ...without using any additional tools, like those suggested in <a href="https://superuser.com/q/55809/27152">an answer to Super User question <em>How to run program from command line with elevated rights</em></a>.)</p>