Skip to content

Instantly share code, notes, and snippets.

@ChrFrohn
Last active June 20, 2026 17:04
Show Gist options
  • Select an option

  • Save ChrFrohn/988a1855da37891f9cb99a037b2ef685 to your computer and use it in GitHub Desktop.

Select an option

Save ChrFrohn/988a1855da37891f9cb99a037b2ef685 to your computer and use it in GitHub Desktop.
Write-Output "SUCCESS: Completed for user: $UserPrincipalName"
Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
StatusCode = [HttpStatusCode]::OK
Body = "SUCCESS: Completed for user: $UserPrincipalName"
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment