Adding this for completeness...

The closest PowerShell code to the above VB script is:

```
PS C:\> switch (1) {
{$_ -eq 1 -or $_ -eq 3 -or $_ -eq 5 -or $_ -eq 7 -or $_ -eq 9} { "Odd"}
{$_ -eq 2 -or $_ -eq 4 -or $_ -eq 6 -or $_ -eq 8 -or $_ -eq 10} { "Even"}
}
Odd
PS C:\VSProjects\Virtus\App_VM> switch (2) {
{$_ -eq 1 -or $_ -eq 3 -or $_ -eq 5 -or $_ -eq 7 -or $_ -eq 9} { "Odd"}
{$_ -eq 2 -or $_ -eq 4 -or $_ -eq 6 -or $_ -eq 8 -or $_ -eq 10} { "Even"}
}
Even
```

Because the VB script Select Case operates via an OR

```
Select Case testexpression
[Case expressionlist-n
[statements-n]] . . .
[Case Else
[elsestatements-n]]
End Select
```

"If testexpression matches any Case expressionlist expression, the statements following that Case clause are executed up to the next Case clause..." Select Case Statement

The interesting thing that I have not been able to figure out is this result:

```
PS C:\> switch (1) {
{1 -or 3 -or 5 -or 7 -or 9} { "Odd"}
{2 -or 4 -or 6 -or 8 -or 10} { "Even"}
}
Odd
Even
```