$PublishedURL = "www.contoso.com"
$IISSiteName = "www.contoso.com"
$PFXPath = "C:\Cert\Cert\"
$Password = "password"
$PFXFullPath = "$PFXPath$PublishedURL.pfx"
$pfx = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
$pfx.Import($PFXFullPath, $Password, [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::EphemeralKeySet)
Import-Module IISAdministration