Just a tip (I learned from another post by @That-Annoying-Guy ), remember to exit the script after the Show-InstallationRestartPrompt - I also find putting a short sleep in the code assists too.
His original advice:
1 Like