if (![string]::IsNullOrEmpty($RoleDatacenterPushNotificationEnvironment)) { $pushNotificationAuthKeysPath = 'HKLM:\SOFTW ...

if (![string]::IsNullOrEmpty($RoleDatacenterPushNotificationEnvironment))          {            $pushNotificationAuthKeysPath = 'HKLM:\SOFTWARE\Microsoft\ExchangeLabs\PushNotificationAuthKeys';            $authKeys = @{};            $pushNotificationAuthKeysItem = Get-Item $pushNotificationAuthKeysPath -ErrorAction:SilentlyContinue;            if ($pushNotificationAuthKeysItem -ne $null)            {              $pushNotificationAuthKeysItem | Select-Object -ExpandProperty property | ForEach-Object `              {                $keyValue = (Get-ItemProperty -Path $pushNotificationAuthKeysPath -Name $_).$_;                if (![string]::IsNullOrEmpty($keyValue))                {                    $authKeys[$_] = ConvertTo-SecureString $keyValue -AsPlainText -Force;                }              }            }            Install-CannedPushNotificationApp `                -AuthenticationKeys $authKeys `                -Environment:$RoleDatacenterPushNotificationEnvironment `                -IsDedicated:$RoleIsDatacenterDedicated `                -AcsUser:$RoleDatacenterPushNotificationAcsUser `                -Region:$RoleDatacenterRegion;          }