Star Trek (1966) : The Squire of Gothos

Encountering an uncharted planet in an empty region of space, Kirk and his crew are entertained by Trelane, a playful being who lacks the self-control to wield his great psionic powers with discipline.