Исправил Wait-WMIRestartComputer