fixing powershell 2.0 incompatibility with array pipline behavior