title: How can I replace every occurrence of a String in a file with PowerShell?
body: <p>Using PowerShell, I want to replace all exact occurrences of <code>[MYID]</code> in a given file with <code>MyValue</code>. What is the easiest way to do so?</p>