I spent some time looking for the scripts I wrote the last time I had to do something like this, it was well over a year ago, but I can't seem to find anything. I think Joe's recommendation is probably the best way to go at this point.
I will publish our upgrade script in the near future. I am contemplating rewriting it in PowerShell as it is currently Batch script.
Thanks,
Joe D.