I'm (trying to run) the script, but its newly created window disappears without me being able to read what it says.
Please pause on errors as well as successful completion.
This occurs when not initially running PowerShell as Administrator.
The workaround is to run PowerShell and there for the script as Administrator, so it doesn't spawn an Administrator new window.