PnP PowerShell
PnP PowerShell should be found in every SharePoint Online administrator toolbox.
It’s not just a SharePoint administrator tool; PnP PowerShell also supports configuring commands to manage a Microsoft 365 tenant, Microsoft Teams, Microsoft Planner, and more. The module includes close to 700 cmdlets and can be used on Windows, Linux, and MacOS platforms. Besides maintenance and configuration tasks, PnP PowerShell can be used for various kinds of automation that are run on Azure, a Docker container, or other platforms. Detailed documentation of the PnP PowerShell can be found at https://pnp.github.io/powershell/index.html.
Installing PnP PowerShell
For installing PnP PowerShell, PowerShell version 7.2 is needed. The legacy version of PnP PowerShell also works on Windows PowerShell, but it’s not maintained actively anymore, so it’s not recommended.
The easiest way to install PnP PowerShell is from the PowerShell Gallery:
Install-Module...