 In the final episode of Star Trek, the Enterprise is answering a medical emergency of an archaeological expedition. Kirk is confronted with the deep hatred of an old love, Janice Lester, who is severely ill from celebium radiation. As payment for jilting her, Dr Lester arranges for an alien machine to swap the consciousness of Kirk and herself in order to take command of the Enterprise from Kirk . Onboard the Enterprise, Kirk (in Lester s body) tries to convince Spock what has happened. As a result, Janice (in Kirk s body) conducts a court-marshal with the intent of executing Spock, McCoy, Scotty, and Kirk (in Janice s body) to keep her secret. The crew realizing something is wrong with their captain does not cooperate. In the turmoil the transfer reverts, and Dr Lester is sent for rehabilitation.