Piping the powershell output to Write-Host was sufficient to get it to work
for .xml files, but it broke on .gz files.
However, following the suggestion here:
(https://github.com/JuliaPackaging/WinRPM.jl/pull/81), I changed the
download function to a call to BinDeps.download_cmd, and that worke
Powershell has types for xml, so maybe telling it to expect an xml result (or
convert the string to xml) would result in different output formatting?
So, it turns out it's not the run command, as I originally thought. After
more digging, I discovered that powershell formats output differently
depending on whether it is outputting to a console or to another process,
and that when it outputs to another process it auto-formats the output.
This