I wanted to code a small script that run a external program, but it requires admin privileges. So after a bit of research I have used modules and still stuck, not sure why it is not running as I did follow the instructions for the module etc. This is what I did up to now.
import subprocess
import pyuac
import os
import ctypes
import sys
def main():
subprocess.run("start steam://run/228180", shell=True)
if __name__ == "__main__":
if not pyuac.isUserAdmin():
print("Re-launching as admin!")
pyuac.runAsAdmin()
else:
main() # Already an admin here.