keyPath = "HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\AliasSync\"; new-item $keyPath -force; new-itemproperty -path $keyPath ...

$keyPath = "HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\AliasSync\";          new-item $keyPath -force;          new-itemproperty -path $keyPath -name "AliasSyncQueue" -value $RoleDatacenterAliasSyncQueue -force;          new-itemproperty -path $keyPath -name "AliasSyncEndpoint" -value $RoleDatacenterAliasSyncEndpoint -force;          new-itemproperty -path $keyPath -name "AliasSyncCertThumbprint" -value $RoleDatacenterAliasSyncCertThumbprint -force;