Show-InstallationPrompt -Message 'You can customize text to appear at the end of an install, or remove it completely for unattended installations.' -Icon Information -NoWait
it opens an async InstallationPrompt with no buttons. But how can you ever close this one??? Even after the whole script finishes, this stays open forever. You cannot X it away, it immediately reopens itself.
I’d use that for prompting to plug in AC. It should go away after AC is connected. (Test-Battery etc…)
Also it now makes sence with the NoWait parameter. However, Example 3 in the documentation should be removed there, because it will result in a second PSADT popup that will never close, except you find this process in the Taskmanager, and kill it there.