Somehow, the mask worn by Michael Myers (character, not comedian) in Halloween (1978) is based on Shatner.

TOS s3e24 “Turnabout Intruder”