The switch statement in PowerShell
Below switch statement will print out the third selection based on the entering number in PowerShell. The switch statement in PowerShell is about identical to the switch statement in other programming languages such as Java, C++, or Python.