I need to run a batch file as administrator. I can easily do this by right clicking or making a shortcut and changing the properties. The issue is when you do so it runs that from the Windows system directory and not the directory where the batch file resides even if I set the running directory. The only way I can run the file currently is to open a command prompt as administrator and manually browse to the file which is highly cumbersome. If I put the full path of the program I need to run in the batch file it can't seem to find it. It may be because it is in program files on their the space, I tried using quotes but wasn't able to get it to work. I am running NVSMI to quickly change power limits, and it seems to be highly annoying to do so.
Update, this works in batch file then run as admin