Check out the TechEd video Windows Server 2008 Hyper-V: Scripting & Programmatic Management for Fun & Profit (VBS & PowerShell ) by John Kelbley , and Alexander Lash. Some of John's example script are newly posed in the Official Scripting
Read More...
Read the complete post at http://blogs.technet.com/tonyso/archive/2008/10/30/hyper-v-how-to-script-vm-functions.aspx