There is an entire library of free PowerShell scripts for Hyper-V 2008r2 management at:
There is an entire library of Hyper-V Cmdlets in Windows PowerShell 3.0 for Hyper-v Server 20012
There are helpful, free, Hyper-V scripts available on the Script Center Gallery.

You can find many, many more Hyper-V scripts on the web, including: 

Get notifications about new free virtualization scripts in the Script Center Gallery with this RSS feed:

See Also