Add task health check with custom command support