Create a .bat file with this in it, change the directory as you desire... set scriptPath="X:\WindowsAppsUnfukker-main\WindowsAppsUnfukker.ps1" set psexecPath="X:\PSTools\psexec.exe" %psexecPath% -s -i powershell -ExecutionPolicy Bypass -File %scriptPath% pause