You need PowerShell 7.2 or later to use PnP PowerShell. It is available heere

Winget: The Microsoft recommended installation procedure is here

To install PowerShell 7 run PowerShell.exe in administrator mode and run this command :
winget install --id Microsoft.Powershell --source winget

Here is the PnP installation page

Remember to set the execution policy – Execution policy
Typically: Set-ExecutionPolicy Unrestricted or Set-ExecutionPolicy Bypass -Scope LocalMachine

If you want to customize the PowerShell modules you also need Visual Code (VSCode)
Download here

Last modified: 21 March 2025