Method not found: ‘Void Microsoft.IdentityModel.Clients.ActiveDirectory.PlatformParameters…ctor(Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior)’.
I tried to google this and unable to figure out what it means.
the way you described using the credential object:
connect-exchangeonline -Credential $TestVar
seems to be correct. I’m using them the same way, with authentication in other modules commands, and it’s working for me. Maybe this is an error from ExchangeOnlineManagement module?