Windows Command Line snippets
From DevOps Notebook
Search and replace string from windows command line
c:\ powershell -Command "(gc somefile.txt) -replace 'foo', 'bar' | Out-File -encoding ASCII somefile.txt"
c:\ powershell -Command "(gc somefile.txt) -replace 'foo', 'bar' | Out-File -encoding ASCII somefile.txt"