Star Trek: The Original Series
Turnabout Intruder
S3 E24:
A vengeful scientist (Sandra Smith) exchanges bodies with Kirk, then attempts to take command of the Enterprise.
Starring
Sandra Smith, Harry Landers, Majel Barrett