Microsoft has provided some samples scripts for MHS on the resource kit site...
Visit Site
Topic: Scripting, Windows Vista