move the reboot into the powershell and disable it while debugging