Files
pixel-streaming-session-ser…/headers/powershell.py
T
2023-02-09 18:40:11 +05:00

9 lines
306 B
Python

import subprocess
def run_command(cmd, directory):
command = subprocess.run(["powershell", "-Command", cmd], cwd=directory, shell=True, check=True)
return command
def run_command_no_dir(cmd):
command = subprocess.run(["powershell", "-Command", cmd], shell=True, check=True)
return command