SyntaxFix
Write A Post
Hire A Developer
Questions
Put each line in cmd or all of theme in the batch file:
@echo off if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) "Put your command here"
it works fine for me.