I am currently using the subprocess package to execute the commands in powershell through python with the following:
subprocess.run(['pwsh', '-Command', 'my command'])
This is working without any privilege escalation as admin.
Now, I want to run with privilege escalation.
Can someone help me to achieve this step.