PowerShell Unable to connect to exchange online/office 365

I am a global admin in my O365 tenant Since Global Admin has all the available permission but still, I am not able to connect to the exchange online or Office 365. I keep getting access denied error message.

connecting to remote server outlook.office365.com failed with the following error message: Access is denied

I have attached the error screenshot also for your reference:

Thankyou.

Hello,
Please find the fix in link below.