No one (including your author) knows what your particular PowerShell needs will be when working with IIS. Fortunately PowerShell is designed to be flexible. This chapter is a collection of my favorite PowerShell commands that I keep around. Each of these is explored elsewhere in this book, but here they are together for your reference. The list is always growing and changing, but this is a good start for your own cheat sheet.
PS> Import-Module ServerManager #only required for PowerShell v2 PS> Get-WindowsFeature –Name *web*
PS> Import-Module ServerManager #only required for PowerShell v2 PS> Add-WindowsFeature Web-Server
PS> Start iexplore http://<ServerName>
PS> Import-Module WebAdministration PS> Get-Command –Module WebAdministration PS> Get-Command –noun web* PS> Get-Help *web*
PS> Get-WebSite –Name Default* PS> Get-Childitem –Path iis:\sites PS> Get-Childitem –Path c:\inetPub\wwwroot
PS> Set-location IIS:\appPools PS> Get-Childitem
PS> Get-Item –Path IIS:\appPools\defaultAppPool PS> Get-Item –Path IIS:\appPools\defaultAppPool | Format-List –Property *
PS> New-WebAppPool –Name BikeTestPool