PowerShellでsed相当の処理を行う

https://orebibou.com/2015/01/powershell%E3%81%A7sed%E7%9B%B8%E5%BD%93%E3%81%AE%E5%87%A6%E7%90%86%E3%82%92%E8%A1%8C%E3%81%86/
https://qiita.com/tomoko523/items/df8e384d32a377381ef9
PsScript.ps1

$data=Get-Content ".\対象ファイル.txt" | % { $_ -replace "[Ww]ord","WORD" }
$data | Out-File ".\対象ファイル.txt" -Encoding UTF8

replace.bat

powershell -NoProfile -ExecutionPolicy Unrestricted .\PsScript.ps1
pause

ちなみに、PowerShellエスケープキャラクタは特殊で通常の文字列は「`」がエスケープ記号なのだが、正規表現のパターンだけは「\」がエスケープ記号になる。
(パターンのみ。置換後の文字列指定で¥は通常キャラクタとして扱われる)