Hi Chris,
Would mind sharing how to get powershell process' result as string (macro variable). I use the follow code just can get the exit code, but I'd like to string (from powershell) as macro variable.
Thanks

data null;
rc =system('powershell viyacli-comads.ps1 &viya_user. &_viya_passwd. ; exit $LASTEXITCODE');
put rc;
if rc ^=0 then do;
%CHECK_ERROR_ABEND(rc, %str(error message as ...));
end;
BTW: viyacli-comads.ps1 is a powershell file use viya cli to get model's infomation.

SHunrui