you are supposed to exit the script after you call
Show-InstallationRestartPrompt -Countdownseconds 61 -CountdownNoHideSeconds 60
Start-Sleep -Seconds 5 #JIC
Exit-Script -ExitCode 1641 # 1641 = Hard-Reboot
you are supposed to exit the script after you call
Show-InstallationRestartPrompt -Countdownseconds 61 -CountdownNoHideSeconds 60
Start-Sleep -Seconds 5 #JIC
Exit-Script -ExitCode 1641 # 1641 = Hard-Reboot