Powershell breaks when adding Pipes

Powershell seems to break when adding Pipes or Select-Object

Example: https://docs.microsoft.com/en-us/powershell/scripting/samples/collecting-information-about-computers?view=powershell-3.0

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.