Why Do PowerShell-Based Exchange Online Cmdlets Often Fail?
Microsoft has long recommended a “PowerShell first” approach to management, but this might be difficult in a Microsoft 365 environment. Cmdlets often fail because of improper permissions. This article explains how you can check for the permissions required to use an individual PowerShell cmdlet.