Not sure when it started, but the current version of the ExchangeOnlineManagement Module has issures running in PowerShell ISE. If you run “connect-exchangeOnline” the error message “A window handle must be configured. See https://aka.ms/msal-net-wam#parent-window-handles” is returned.

Solution: Handle Authentication yourself using the following code:
$msalPath = [System.IO.Path]::GetDirectoryName((Get-Module ExchangeOnlineManagement).Path);
Add-Type -Path "$msalPath\Microsoft.IdentityModel.Abstractions.dll";
Add-Type -Path "$msalPath\Microsoft.Identity.Client.dll";
[Microsoft.Identity.Client.IPublicClientApplication] $application = [Microsoft.Identity.Client.PublicClientApplicationBuilder]::Create("fb78d390-0c51-40cd-8e17-fdbfab77341b").WithDefaultRedirectUri().Build();
$result = $application.AcquireTokenInteractive([string[]]"https://outlook.office365.com/.default").ExecuteAsync().Result;
Connect-ExchangeOnline -AccessToken $result.AccessToken -UserPrincipalName $result.Account.Username;
Thanks to David Homer for posting this solution on Network Audit and Documentation, CENTREL Solutions Blog.