title: How can I use PowerShell to expand placeholders in a template string using values read from an INI file?
body: <p><strong>values.ini</strong> looks like</p>
  
  <pre><code>[default]
  A=1
  B=2
  C=3
  </code></pre>
  
  <p><strong>foo.txt</strong> looks like</p>
  
  <pre class="lang-none prettyprint-override"><code>Now is the %A% for %a% %B% men to come to the %C% of their %c%
  </code></pre>
  
  <p>I want to use Powershell to search for all of the %x% values in <strong>values.ini</strong> and then replace every matching instance in <strong>foo.txt</strong> with the corresponding value, case insensitively; generating the following:</p>
  
  <pre class="lang-none prettyprint-override"><code>Now is the 1 for 1 2 men to come to the 3 of their 3
  </code></pre>