Check for invalid cmd