Consider this https://docs.microsoft.com/en-us/powershell/scripting/samples/selecting-items-from-a-list-box?view=powershell-5.1
Now after $x add Connect-ExchangeOnline
In a fresh PowerShell window the script fails at the connect with “Not in a single cabinet”. Calling it again consequently in the same session works. This only happens in EXO module > 2.0.3 but works fine in 2.0.3 and earlier. Calling Connect-ExchangeOnline before the form is not an option. I opened a ticket at Microsoft but they are dragging their feet. As I am asking here, it’s clear I’m out of ideas. Basic authentication works, but is not a future proof option.
Any ideas would be appreciated.