Editing XML using PowerShell

I recently had a requirement to edit an XML document using PowerShell  Fortunately, this is a relatively easy task as shown below.  I’ve used a system environment variable %USERPROFILE% to populate the path to the file. The script modifies a value in the XML document (highlighted in the example below) and ensures this is persisted…

1