 As a writer, Graham penned seven episodes of "M*A*S*H" (and guest starred as Sgt.Gribble in the episode "Your Hit Parade," for which he was program consultant) and nine episodes of "The Brady Bunch Hour".He also co-wrote the screenplays for the Mel Brooks' films "To Be or Not to Be" (1983) and "Spaceballs" (1987), appearing onscreen as Sondheim in the former and the Minister in the latter.