Below switch statement will print out the third selection based on the entering number in PowerShell.
switch (3) { 1 {"one"} 2 {"two"} 3 {"three"} }
three
The switch statement in PowerShell is about identical to the switch statement in other programming languages such as Java, C++, or Python.