If you really need Powershell, a couple of options.
1. http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=199178#Post199178
2. http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=83201