SharePoint Online PowerShell – Connect-SPOService – resolving error “The remote server returned an error: (400) Bad Request” while executing in PowerShell 7.4

SharePoint Online PowerShell – Connect-SPOService – resolving error “The remote server returned an error: (400) Bad Request” while executing in PowerShell 7.4