Night Court

'Night Court' is an American sitcom that ran from 1984 to 1992 on NBC. The show is about the antics and staff of the night shift at a Manhatten municipal court with its eccentric unusual characters including new young prankster judge Harry T. Stone Jr and his colleagues.

S5E20: Top Judge
Harry manages to one-up a new judge and rival prankster.