2011-11-23 ファイル出力 "ファイルに書き込む文字列" | Out-File "出力ファイルパス" powershell PS C:\Work> "あいうえお" | Out-File sample.txt -encoding UTF8エンコード指定しないとUTF-16になるみたい。 これだとCSVで出力してもexcelでうまく認識しない。 ネタ元 http://hiros-dot.net/PowerShell/file/file04.htm