I am trying have a function called on every pages?
$ScriptName = "SayBoo"
$scriptBlock = "booMonster('monsterhere');"
#Connect to the SPO site
Connect-PNPOnline -Url https://myteams.qqq.com/sites/tmnaisa/IS/PlayArea -Credential sp
#Remove script if added before
#Add the script
Write-Host "Completed successfully." -ForegroundColor Green