Having posted the first of three screencasts to channel 9 on Hosting Windows PowerShell, I thought i would make the code available. (attached)

Enjoy

THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS