Why go to all this trouble, and have to modify the script each time changes are introduced? Better to use Compuware's ServerVantage software which will monitor your SQL Server for your, give you on-screen visual/email/pager notification, reports, plus a TON more. Check it out at:
Sure, that would make life easy but if you work on an environment wherein you do not have this software, how would you deal with it?
Writing scripts is the only portable way which would give you consistent results and makes you an hero.