source: Option Explicit
  Dim d
  d = Time
  MsgBox "Test #29 - Time: " & d
target: Add-Type -AssemblyName Microsoft.VisualBasic
  Option Explicit
  
  $d = [Microsoft.VisualBasic.DateAndTime]::TimeOfDay
  [Microsoft.VisualBasic.Interaction]::MsgBox "Test #29 - Time: " + $d