fullPath = "$RoleInstallPath\Bin\Microsoft.Exchange.Management.Recipient.dll.config"; $pswsHostUrl = $RoleDatacenterPswsHostName; ...

$fullPath = "$RoleInstallPath\Bin\Microsoft.Exchange.Management.Recipient.dll.config";            $pswsHostUrl = $RoleDatacenterPswsHostName;            Set-Appconfigvalue - ConfigFileFullPath: $fullPath-Element: Configuration / AppSettings - AppSettingKey: PswsHostServerName - NewValue: "$pswsHostUrl";