Trigger event when a command has been executed successfully.