Star Trek The Original Series S02 E03 – The Changeling
The crew of the Enterprise deals with Nomad—an indestructible, planet-destroying space probe that thinks Kirk is its creator. Star Trek: The Motion Picture was in part an expansion of this episode.