From http://community.spiceworks.com/scripts/show/1822-powershell-function-reset-module