In this case, you can use the PowerShell function called Splatting, as Don Jones himself explained here: Windows PowerShell: Splatting .
In this, you can define parameters as an object of the dictionary of Property and Value pairs, as shown below:
$parameters = @{$FirstPropertyName = $FirstValue; $SecondPropertyName = $SecondValue; $ThirdPropertyName = $ThirdValue}
You can then pass this on to your cmdlet using an operator @as shown below:
Set-QadUser @parameters
:
$property = 'MobilePhone'
$value = ($User | get-QadUser -IncludedProperties $property).$property
$parameters = @{$PropertyName = $NewValue}
$user | Set-QadUser @parameters
: , PetSerAl . , .