Okay, it is really just starting a batch script with administrator privileges. And after identifying the real problem, you can easily find an answer. For example herehere. A simple
cd %~dp0
at the beginning does the trick.
Information about batch parametersInformation about batch parameters