SqlInsert command and probably others as well does not return a return status code. As noted in the documentation:
Eventually, calling the run() method actually executes the command and returns the returned code from the command (return value from command's execute() method)
without that code it's impossible to know if the console command executed correctly or it failed.
So it kind of can't be used correctly with bash scripts, phing tasks or other that relay on return status code