Return status of executed command