Hi David Dawson 100,
According to the link in your post, in PowerShell 7, browser-based single sign-on (SSO) is used by default, so the sign-in prompt opens in your default web browser instead of a standalone dialog. So I think it's an expected behavior to open your browser in PowerShell 7 and you can keep running the script in Windows PowerShell 5.1 if you still want to use the standalone dialog.
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.