-Authentication Basic
Basic authentication is being turned off, need to use Modern auth.
Here are the new commands, and the Basic one you're trying to use is also cited on this page so you can compare and decide how best to update your commands:
For us, we used Connect-MsolService -Credential $cred
All we had to do was change all those to Connect-ExchangeOnline - Credential $cred
And a few other commands then needed to be changed too, like Get-MailboxStatistics into Get-EXOMailboxStatistics. But not much really.
You can still use single factor accounts if you're worried about that, Modern Authentication doesn't mean forced to MFA.