Context
When a PowerShell script installs components what modifies environment variables like PATH. This takes effect only when I close the console window, then reopen another.
If the following commands require the the changed environment, they will fail.
Question
I would like to run such a script without manual intervention, how can accomplish this? I found Powershell - Reboot and Continue Script, but that would be overkill. Is there any similar just to exit, then continue?