I am trying to figure out a way to update my web.config for different environments by updating the configSource for the appSettings element in the web.config.
Here
Finally figured it out.
$root = $xml.get_DocumentElement().SelectSingleNode("//client[@configSource]").configSource = "test"
of course, I will replace "//client[@configSource]" with a variable so I can pass in different nodes as parameters to create my base script.