Powershell has become a defacto scripting environment for a lot of companies and rightly so considering its capabilities.
However, not every place do we find all modules loaded into powershell as one would like for the ease of scripting. I faced a similiar situation wherein I wanted to perform few admin tasks on an IIS box and din't have the IIS powershell snap-in installed. Wish the server was Windows Server 2008 R2 (IIS module is out-of-the-box loaded). There are more than a couple ways which could handle the script I was aiming for. Nevertheless, I thought it was a great opportunity to check out this functionality.
Source : The Official Microsoft IIS Site