Biegel got his first staff writing job on Scrubs, in its fifth season. In that season he wrote the episode "My Missed Perception" as well co-wrote the season finale "My Transition." In the sixth season he was promoted to story editor. In that season he wrote "My Fishbowl" and co-wrote "My Rabbit." In the seventh season he was promoted to executive story editor, he wrote the only unaired episode of Scrubs entitled "My Commitment." The episode was not completely filmed due to the writers strike, material from the episode was later used in an episode of season eight. For the eighth season he became a co-producer and wrote two episodes. They were, "My Nah Nah Nah", which had story lifted from the incomplete seventh season episode, and "My Cuz." The show would go on to a ninth season, but Biegel moved on to work on his new show Cougar Town.
While working on the eighth season of Scrubs in which Courteney Cox guest starred, she asked Bill Lawrence to come up with a show for her. After coming up with the initial concept he asked Biegel to write the pilot with him. Lawrence directed the pilot and the series was picked up for 13 episodes.
After airing on ABC's new "Wednesday Night Comedy Lineup" it became a hit and got a back nine order, bringing season one's episode total to 24. Other than the pilot Biegel has written the third episode "Don't Do Me Like That," and has gotten the story credit for the tenth episode "Mystery Man." Biegel acts as co-executive producer and co-head writer, along with Lawrence.
Before getting the writing job on Scrubs, Biegel worked as a writers' assistant for many years.