compatiblity powershell v2