I want to pipe the output of a command to a file:
PS C:\\Temp> create-png > binary.png
I noticed that Powershell changes the encoding
According to this well written blog article
When using curl with PowerShell, never, never redirect to file with >. Always use the –o or –out switch. If you need to stream the output of curl to another utility (say gpg) then you need to sub-shell into cmd for the binary streaming or use temporary files.