# Many Choices: \`switch\`

switch compares one value with a list of choices and runs the block of each one that matches, with default for anything else; -Wildcard and -Regex match patterns instead of exact text, and a switch on a Read-Host answer makes a simple menu.

![Cheat sheet for the lesson Many Choices: \`switch\`: switch compares one value with a list of choices and runs the block of each one that matches, with default for anything else; -Wildcard and -Regex match patterns instead of exact text, and a switch on a Read-Host answer makes a simple menu.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/7c88a92a290e4206a2ecada3e26b3d78.webp)

- Category: PowerShell
- Level: Apprentice
- Tags: if-statement, powershell, read-host, switch-statement, wildcard
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-switch-cheat-sheet
