which us tv show has the most episodes
You didn't specify prime time or American shows or cable or syndication or anything, so generally speaking, the American soap opera, Guiding Light may be the TV show with the most scripted episodes at 18,262 episodes. Technically it's more since it was on the radio for 15 years prior it moving to TV.