Were you the Shatneresque captain of the starship Protector? - Yes, from Galaxy Quest: Peter Quincy Taggart.
Did you twice dress as a post-WWIII judge? - Yes, Q, from three incarnations of Star Trek.
Were you a mystery writer’s pen name? - Ellery Queen.
DQs:
Usually considered a “good guy”?
Usually carries a gun?
IQs:
Were you an android in a Gene Roddenberry-created TV show?
Were you a producer of cop shows in the Seventies?
Were you one of Cletus Spuckler’s gazillion kids?
IQ1: Despite being against the death penalty, did you support the execution of King Louis XVI and go on to establish the Cult of the Supreme Being?
IQ2: Did you play Shaft in the movie of the same name?
IQ3: Did James Best play you in Dukes of Hazard?