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


in reply to Re^4: 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

Prompt the user for credentials and then retrieve the AccessToken obje +ct.

Do you understand Powershell? Did you read what this code is doing? If you want to avoid this in powershell either ask elsewhere (i.e. not a perl forum), or alter the code provided to use an alternate method (if possible). Perl based methods have been suggested earlier, did you try them?