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

Also you need Visual Studio Code (VSCode) for editing PowerShell Download here

Here is the PnP installation page

Last modified: 15 March 2024