Powershell seems to break when adding Pipes or Select-Object
Can you point us at the .travis.yml you’re using so we can see exactly how you’re calling PowerShell?
Are you enclosing the PowerShell command string in single quotes? Since Travis runs its script inside Git bash, you need to do Unix shell quoting if the command contains shell special characters, and a pipe is one of those.