I have a python that uses pyvmomi library of VMWare to perform operations on remote VM. I open the remote VM cmd prompt using Pyvmomi library like this
vim.vm.guest.ProcessManager.ProgramSpec(
programPath="C:\\Windows\\System32\\cmd.exe")
Is there any way to open Power Shell as Admin or any code that can be added in the script to run it as Admin.