title: How to convert a batch file to XML file
body: <p>I am having a file where Xcopy commands were written. Now i need to move them to xml file format so that i can execute with them in Msbuild.</p>
  
  <p>Following are my file contents</p>
  
  <pre><code>xcopy File1 Destinationfolder1
  Xcopy File2 DestinationFolder2
  Xcopy File3 DestinationFolder1
  </code></pre>
  
  <p>I would like to make it as xml file as follows</p>
  
  <pre><code>&lt;Xcopy include="File1"&gt;
  &lt;Destination&gt; DestinationFolder1 &lt;/Destination&gt;
  &lt;/Xcopy&gt;
  
  &lt;Xcopy Include="File2"&gt;
  &lt;Destination&gt; DestinationFolder2 &lt;/Destination&gt;
  &lt;/Xcopy&gt;
  
  and so on..
  </code></pre>
  
  <p>Is there any powershell script or some other easy way to achieve this?</p>