return a CommandResponse from shell_exec
cleanup; added debugging