Powershell 3 Compatiblity