USA’s “Burn Notice” wrapped its seven-season run Thursday with its largest audience in two years, standing as TV’s most-watched scripted program of the night.

The series created by Matt Nix and starring Jeffrey Donovan averaged a 1.3 rating/4 share in adults 18-49 and 4.97 million viewers overall, rising about 1 million viewers from its penultimate episode of last week, which went up against the first NFL game of the season.

The last time “Burn Notice” drew a larger audience than Thursday was midway through its fifth season in 2011, when it bagged 5.21 million.

The show’s largest same-night audience came in 2009 with its midseason finale, which drew about 7.4 million same-night viewers (and swelled to about 9 million with full-week DVR playback).

“Burn Notice” was cable’s No. 1 series Thursday in 18-49 and 25-54 (1.5/4) and edged out ABC’s “Rookie Blue” season finale to rule as TV’s most popular original scripted program of the night.

“Burn Notice” premiered in June 2007 and celebrated its 100th episode earlier this year. That leaves “Psych” as the longest-running scripted program on USA