>>696
エラー内容が「[System.Object[]] に 'replace' という名前のメソッドが含まれない」なら、これ↓じゃない?
https://stackoverflow.com/questions/35641714/system-object-doesnt-contain-a-methodnamed-replace

[IO.file]::ReadAllText('C:\a.txt').replace("aaa","bbb")|Out-File b.txt