Scenarios are never the same, and neither should be your Pester scripts to test those scenarios. There are a couple of ways to account for these different scenarios. You could create a separate test ...
XDA Developers on MSN
I stopped switching to a terminal to run scripts once I found VS Code's task runner
The hidden VS Code tool has replaced the terminal for me.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results