That example you gave is from 2008. You would use the current PowerShell Cmdlets provided for managing IIS.
IIS:\>New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader TestSite
https://technet.microsoft.com/en-us/library/ee790599.aspx