my programm is supossed to open the powershell and download spicetify, everything works besides the powershell itself, i send the command but nothing happens.
here is my Code:
import pyautogui
import time
import subprocess
def powerShell():
subprocess.run(['start', 'powershell.exe'], shell=True)
time.sleep(2)
def mouseStuff():
pyautogui.moveTo(900,500)
time.sleep(1)
pyautogui.click(900, 500)
def befehl():
pyautogui.write('iwr -useb https://raw.githubusercontent.com/spicetify/cli/main/install.ps1 | iex')
time.sleep(2)
pyautogui.press('enter')
powerShell()
mouseStuff()
befehl()