Exchange Online Basic Authentication Depreciation

Hi Community,

Version - 8.0

As I have received the notification that basic authentication will be disabled and sync to Exchange online wont be possible, so I was wondering what could be the alternative here.

We are connecting to exchange online using PowerShell custom script with basic authentication.

New -PSSession -ConfigurationName Microsoft.Exchange -ConnectionURI https://xyz.com/powershell -Credential -Authentication Basic -SessionOption

Thanks.