Kirk and Spock are taken prisoner by a former starship captain who now resides at -- and has taken over -- an asylum for the criminally insane.