I have a (free) PowerShell module that can do this kind of thing.
http://code.msdn.microsoft.com/dnsshellI need to do a few updates to make the easier, it's one of those things I intended it to be able to handle though.
It would go something like this, subject to testing, etc, etc.
Chris