I build a script to remove Windows 10 Apps per Python. I saved the apps to remove in a String Array and save the complete command in a variable.
Then I run the command, come a Error with: The Remove-AppxPackage command is either misspelled or could not be found.
And I have coded following code:
win10Apps = ["3d", "camera"]
for app in win10Apps:
psCommand = "Get-AppxPackage " + app + " | Remove-AppxPackage"
pyautogui.press("Enter")
os.system("powershell.exe " + psCommand)
pyautogui.press("Enter")