Add-Type -AssemblyName System.Windows.Forms [Windows.Forms.PowerStatus].GetConstructor( [Reflection.BindingFlags]36, $null, [Type[]]@(), $null ).Invoke($null)
Reference: http://poshcode.org/5687
Add-Type -AssemblyName System.Windows.Forms [Windows.Forms.PowerStatus].GetConstructor( [Reflection.BindingFlags]36, $null, [Type[]]@(), $null ).Invoke($null)
Reference: http://poshcode.org/5687