Brian-Smith Hello, Thank you for putting this together! Was the "not200" added in error" (code snippet below) Once i removed that, i stopped getting red text.
{
not200
Write-host " No access to group - "$value.description " with the /planner/plans call"
Write-host " Check in AAD or Graph"
} # avoids the 403 displaying - may hide other failures
not200 : The term 'not200' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At D:\Powershell\Planner_Find_Planner_Plans.ps1:64 char:13
+ not200
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (not200:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException