I\'m trying to replace all double quotes in a file (temp1.txt) with two double quotes using this PowerShell command run from a bat file in Windows 7:
powersh
The escape character is grave-accent for PowerShell. Try this instead:
powershell -Command "(gc c:\temp\temp1.txt) -replace `", `"`" | Out-File -encoding UTF8 c:\temp\temp2.txt"