Updates to make TechNet PowerShell Windows Forms examples compatible with PowerShell 3.0 and later