It was a night of season finales for involving eight scripted broadcast shows, but the top dog was still “Dancing With the Stars,” which propelled ABC to a Monday primetime victory.

Another non-finale, the penultimate episode of the seventh season of “House,” was the top scripted offering of the night among adults 18-49 despite competing against the first hour of “Dancing.”

According to preliminary nationals from Nielsen, “Dancing” (4.4 rating/12 share in 18-49, 21.4 million viewers overall) built to a 5.1 rating in its final halfhour. That set up a platform for the season finale of ABC drama “Castle” (3.3/8, 13.2 million), which won the 10 p.m. timeslot over the season finale of CBS’ “Hawaii Five-0” (2.5/6, 9.8 million).

“How I Met Your Mother” (3.0/9, 7.1 million) performed the best of CBS’ three comedy season finales, ahead of “Mike and Molly” (2.5/6, 8.6 million) and the now-canceled “Mad Love” (2.1/6, 5.8 million). “Two and a Half Men” (2.0/5, 6.9 million) had a slight bounce in its first rerun since the news that Ashton Kutcher would replace Charlie Sheen as the show’s star this fall.

NBC’s “Chuck” (1.5/4, 4.5 million) also had an uptick from the previous week for its season finale; the series moves to Friday for its fifth and final season in the fall. The Peacock followed with new episodes of “The Event” (1.3/3, 4.0 million) and “Law and Order: Los Angeles” (1.1/3, 4.3 million).

For the CW, “90210” (0.8/2, 1.7 million) and “Gossip Girl” (0.7/2, 1.3 million) wrapped up their seasons.

Preliminary 18-49 averages for the night: ABC 4.1/11, Fox 2.7/7, CBS 2.5/7, Univision 1.5/4, NBC 1.3/3, CW 0.8/2.

In total viewers: ABC 18.7 million, CBS 8.0 million, Fox 7.4 million, NBC 4.3 million, Univision 1.9 million, CW 1.5 million.