Currently sh has no meaningful return value, and throws an exception if the exit status is not zero. Would be nice to have an option to have it return the exit code (zero or not) as an integer value:
Or to have it return its standard output (akin to shell backticks):
Or to have it take something on standard input:
Probably requires some API changes in durable-task.