Hi,
I've tried connecting to Exchange Online PowerShell V2 module using modern authentication and the commands work for me.
What error did you meet?
Reference steps: Connect to Exchange Online PowerShell using modern authentication
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.