title: To create XML output file from PowerShell script
body: <p>To create below XML output from PowerShell script:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Trigger&gt;
    &lt;Value1&gt;20181231&lt;/value1&gt; 
    &lt;value2&gt;20180531&lt;/&gt;
    &lt;value3&gt;20180531&lt;/value3&gt;
    &lt;value4&gt;FINANCE&lt;/value4&gt;
    &lt;value5 /&gt;
    &lt;value6 /&gt;
  &lt;/Trigger&gt;
  </code></pre>
  
  <p>Value1 is this years end date. Value2 &amp; value 3 is this months end date. How to create above XML from PowerShell script?</p>