-NotAuthorized and -PageNotFound parameters

it means you design what the notauthrorized element you want to return to users when page not found and you put that inside the scriptblock so no need for your second part of -Content{ New-UDTypography -Text “Yep”}