Star Trek The Original Series S02 E06 – The Doomsday Machine

After losing his entire crew to an alien planet-eating machine, Commodore Matthew Decker pulls rank on Kirk in order to play a game of cat-and-mouse with the mechanical adversary. His efforts to destroy the menace place the Enterprise in grave danger.