[COOK-4130] Support Powershell 3.0 and 4.0.