Add child node at the beginning of XML
<p>I am trying to add a child node in the following XML. I am able to, but my issue is it adds it at the end. How am I able to add the node at the beginning between <code>&lt;catalog&gt;</code> and <code>&lt;book&gt;</code>?</p>

<pre><code>&lt;?xml version="1.0"?&gt;
 &lt;catalog&gt;
 &lt;book id="bk101"&gt;
   &lt;author&gt;Gambardella, Matthew&lt;/author&gt;
   &lt;title&gt;XML Developer's Guide&lt;/title&gt;
   &lt;genre&gt;Computer&lt;/genre&gt;
   &lt;price&gt;44.95&lt;/price&gt;
   &lt;publish_date&gt;2000-10-01&lt;/publish_date&gt;
   &lt;description&gt;An in-depth look at creating applications 
   with XML.&lt;/description&gt;
 &lt;/book&gt;
 &lt;book id="bk102"&gt;
   &lt;author&gt;Ralls, Kim&lt;/author&gt;
   &lt;title&gt;Midnight Rain&lt;/title&gt;
   &lt;genre&gt;Fantasy&lt;/genre&gt;
   &lt;price&gt;5.95&lt;/price&gt;
   &lt;publish_date&gt;2000-12-16&lt;/publish_date&gt;
   &lt;description&gt;A former architect battles corporate zombies, 
   an evil sorceress, and her own childhood to become queen 
   of the world.&lt;/description&gt;
  &lt;/book&gt;
  &lt;/catalog&gt;
</code></pre>

<p>My code is:</p>

<pre><code> [xml]$a = Get-Content 'C:\Users\me\Documents\Scripts\books.xml'
 $ammend =$a.CreateElement("Quarter")
 $a.DocumentElement.AppendChild($ammend)
 $a.save('C:\Users\me\Documents\Scripts\books.xml')
</code></pre>