We have a PSExec command to run batch scripts on a remote machine.
When we run it from the machine where the self hosted agent is, it shows the job(batch script) log, on the command window.
But when we run the same command from Azure pipeline via Command Line task, it is not showing the log.
All it shows is
cmd exited on NTCUPX01 with error code 0.
Is there anyway we can display the output, so that it is useful to anybody who is running the pipeline?