Turnabout Intruder

"One of Kirk's former lovers, consumed with jealousy and bitterness for being denied a Starfleet captaincy, renders Kirk unconscious and trades bodies with him, assuming his identity and abusing the powers of his command.""Turnabout Intruder" is the twenty-fourth episode of the third season of Star Trek: The Original Series and the final episode of the series overall. It first airing on NBC on 3 June, 1969.