I have this script in a workflow and this line fails when I use a variable
set-Qaduser -identity agntest\$usr -ObjectAttributes @{employeetype = $UserEmpType}
If I put text it works fine.
set-Qaduser -identity agntest\$usr -ObjectAttributes @{employeetype…