source: Option Explicit
  Dim n
  n = 24
  If n Mod 2 = 0 Then
      MsgBox "Test #24 - Even number"
  Else
      MsgBox "Test #24 - Odd number"
  End If
target: Add-Type -AssemblyName Microsoft.VisualBasic
  Option Explicit
  
  $n = 24
  if( $n Mod $2 -eq 0 ){}
      [Microsoft.VisualBasic.Interaction]::MsgBox "Test #24 - Even number"
  }
  else {
  
      [Microsoft.VisualBasic.Interaction]::MsgBox "Test #24 - Odd number"
  End If