I want to execute a batch file from powershell or command line, but it needs to execute with administrative credentials.
Is there a way to pass the administrative credentials as an argument in command line/powershell to execute batch file? I tried to use -Credential new-object but it prompt the credentials popup on the screen