How can I export a SharePoint List to Excel using PnP Powershell. I have spend hours googling it. But no luck. I found this code below but i think it isn't PnP Powershell code.
Export-SPWeb -Identity http://content.contoso.cloud -ItemUrl /lists/testlist -Path "c:\export\export1.cmp"
Does someone knows the exact code?