Reporting an Issue or Missing Feature
We have discovered that when the Custom Script setting is set to "Blocked" on the app catalog site, we are unable to release our SPFx web part using the Add-PnPApp cmdlet. We receive a System.UnauthorizedAccessException.


If we change the setting to "Allowed", it works fine.
Expected behavior
We expect to be able to release our SPFx web parts using the Add-PnPApp cmdlet without having to first run Set-PnPSite -NoScriptSite $false
Steps to reproduce behavior
Set the Custom script setting to "Blocked" on the app catalog site and run the Add-PnPApp cmdlet on this site.
What is the version of the Cmdlet module you are running?
Running PnP.PowerShell 2.10.0
Which operating system/environment are you running PnP PowerShell on?