http://www.perlmonks.org?node_id=1026039


in reply to Re^2: How to handle a browser window that opens up during the execution of some external program commands
in thread How to handle a browser window that opens up during the execution of some external program commands

I asked the OP to post the powershell code, and offered to help with it