fullPath = "$RoleBinPath\MSExchangeUM.config"; if (-not ([String]::IsNullOrEmpty($RoleDatacenterUMRoleDataPath))) { if (!(Test-Path ...

$fullPath = "$RoleBinPath\MSExchangeUM.config";        if (-not ([String]::IsNullOrEmpty($RoleDatacenterUMRoleDataPath)))        {          if (!(Test-Path -Path $RoleDatacenterUMRoleDataPath)) {New-Item $RoleDatacenterUMRoleDataPath -type directory};          set-appconfigvalue -ConfigFileFullPath:$fullPath -Element:configuration/appSettings -AppSettingKey:UmDirectory -NewValue:$RoleDatacenterUMRoleDataPath;          $umTracePath = [System.IO.Path]::Combine($RoleDatacenterUMRoleDataPath, "UMLogs");          if (!(Test-Path -Path $umTracePath)) {New-Item $umTracePath -type directory};          set-appconfigvalue -ConfigFileFullPath:$fullPath -Element:configuration/appSettings -AppSettingKey:TracePath -NewValue:$umTracePath;          $umLogPath = [System.IO.Path]::Combine($RoleDatacenterUMRoleDataPath, "Log");          if (!(Test-Path -Path $umLogPath)) {New-Item $umLogPath -type directory};          set-appconfigvalue -ConfigFileFullPath:$fullPath -Element:configuration/appSettings -AppSettingKey:LogPath -NewValue:$umLogPath;        }        if (-not ([String]::IsNullOrEmpty($RoleDatacenterUMTemporaryStoragePath)))        {          set-appconfigvalue -ConfigFileFullPath:$fullPath -Element:configuration/appSettings -AppSettingKey:TempPath -NewValue:$RoleDatacenterUMTemporaryStoragePath;        }