Powershell is a great tool for doing that. I think Kendal Van Dyke may have written a script that's available online. Just do a search for it.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning