Switching Between PowerShell Prompts with Set-Prompt

I’m usually pretty happy with the default PowerShell prompt that displays the current path, however sometimes I just want a generic prompt for screenshots or a demonstration. With an infinite number of custom PowerShell prompts possible, it became apparent that the appropriate prompt depends on the current task. By copying the Set-Prompt function into $Env:UserProfile\Documents\WindowsPowerShell\profile.ps1, I have an easy way to quickly switch between these different prompts and I only need to edit my profile when I want to add a new prompt.

If I see a neat custom prompt like a Domain Controller PowerShell Prompt or a Christmas Prompt, I just add an additional switch block to Set-Prompt.

Screenshot of the Set-Prompt function in use