Adapt NA task status using command script exit code

Hi all,

 

I'm running a task that use a command script and I would like to be able to set the status of the task to Warning in some cases.

Actualy when I use the exit code in the script I'm only able to set the status to Failed or Succeeded.

Is there a way to set the task status to Warning when our script encounter some designed behaviours ?

 

Thanks in advance.