Get-SSPSiteScript.ps1
function Get-SSPSiteScript { param( $title, $connection = (Get-PnPConnection) ) $scripts = Get-PnPSiteScript -Connection $connection $scriptObj = $scripts | Where-Object {$_.Title -eq $title} if ($scriptObj) { return $scriptObj } } |