We do not supply scripts on request. Please read the following links for more info. You can search for numerous articles that will tell you how to use PowerShell with XML.
Once you learn PowerShell and XML you can use the following Commands to design and write your script:
Get-Content
-notin
[xm[]
Enumerate the nodes and compare them with the array value\s then remove.
Please carefully review the following links to set your expectation for posting in technical forums.
- This Forum is for Scripting Questions Rather than script requests
- How to ask questions in a technical forum
- How to post code in Technet Forums
Learning to script properly with PowerShell
- Microsoft Script Gallery
- Getting Started with Microsoft PowerShell
- PowerShell Documentation
- The PowerShell Best Practices and Style Guide
\_(ツ)_/