title: Edit email using powershell and retain the HTML format
body: <p>Hi I am trying to edit the HTML email template using powershell which has some pictures and colours.
  I need to edit and replace some content in email and retain the html body. When i try the below script it's converting to text format </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>$file= 'FILE PATH '
  $outlook= New-Object -ComObject outlook.application
  $msg= $outlook.createitemfromtemplate($file)
  $msg.body= $msg.body -replace "December\d*", "TEST$a"
  $msg.saveas($file)</code></pre>
  </div>
  </div>
  </p>