The Last Outpost

Held captive over an unknown planet, the away teams of the U.S.S. Enterprise and Ferengi starships must pass an important inquisition by a mysterious life form known as Portal, before they are allowed to continue their journeys through space.