To use a different encoding for saving, either use Out-File explicitly and pass it an -Encoding argument, or, for better performance with input that is already text - as is the case with external-program output - Set-Content . [1]
【【p8】】
【【p9】】
【【p10】】
The simplest workaround is to delegate to cmd.exe with cmd /c ... (on Windows) and to /bin/sh with sh -c ... (on Unix-like platforms.
【【p11】】
[1] Note that -Encoding Utf8 invariably creates UTF-8 files with BOM in Windows PowerShell - see 此答案 for workarounds in case BOM-less files are needed.