Off-duty pilot accused of trying to cut jet engines midflight appears in court