i'm using TEO 2.1.2 with the hotfixes from 1 to 12 already installed and i have a problem using the "Execute Windows PowerShell Script" in reading the output of a PowerShell script if an exit code is expressly setted . For example if i try to execute a script like:
the output given by the activity is only 0 (like the exit code).
This is a problem if i use a script with multiple exit codes corrisponding to different kind of situations and different outputs like the following:
if($flag -eq "0")
elseif ($flag -eq "1")
Write-output "Error 1"
Write-output "Error 2"
or if i call an executable which exit codes i want to identify by a readable description.
Anyone knows a way to solve this issue?
Thanks a lot,