title: Is there a way to elevate CMD to admin, and run a Batch file in that same command prompt instance?
body: <p>I have a batch file that comes from a python program, that writes Registry Editing commands from user input and to execute these commands to have them work, ALL need admin rights. Currently I am using</p>
  <p><code>&quot;powershell -Command Start-Process cmd -Verb RunAs|c:\users\T\Desktop\output.bat&quot;</code></p>
  <p>Which seems like it would work (To a noob like myself) and when I run this command, it opens a command prompt window as administrator, BUT the problem is that the &quot;output.bat&quot; file runs in the NON ADMIN Command prompt.</p>