J.T. Miller has been a bolt of lightning for the Rangers.

An electrification of this team was necessary, and Miller has proven capable of jolting the Blueshirts just by playing his game at the level that he has on a nightly basis since beginning his second stint on Broadway 10 games ago.

Behind a two-point night from Miller and a strong showing from his line, the Rangers trounced the Predators 4-0 Sunday night at Madison Square Garden to pull within two points of the second wild card as part of a three-way tie with the Bruins and Senators.

Miller has turned out to be the exact shock to the Rangers system that is required for this playoff push.

J.T. Miller celebrates after scoring during the Rangers’ win against the Predators on March 2. NHLI via Getty Images

Artemi Panarin (10) celebrates with J.T. Miller (8) after a Rangers
goal during their win March 2. NHLI via Getty Images

“It’s exactly what we needed,” Jonny Brodzinski said. “He brings that level of bite that I think we needed. You can see these last couple games just collectively, as a team, if we bring that sort of edge to our game, it kind of makes teams shut down a little bit. I think we can take advantage of it.

“I don’t know a lot of games where we were putting up that many hits or creating that many loose puck battles that we’re winning and stuff like that. He definitely brought that sort of edge that we needed.”

With a goal and an assist Sunday night, Miller not only extended his point streak to five games, but also upped his point total to 12 (six goals, six assists) in his first 10 contests back with the Rangers.

The production is easy to highlight, but his physicality and nonstop motor has been infectious.

Mika Zibanejad, who has endured a down season, has collected four goals, 11 assists and posted a plus-six rating since Miller’s trade, including the two assists he recorded Sunday night.

The Swedish center, who now leads the NHL in points since Feb. 1 with 15, has skated eight of those 10 games on the wing of Miller.

“He’s a great player,” Zibanejad told The Post. “He makes plays, he plays hard. There’s a lot of qualities. He’s done it for a long time, too. He’s not in Year 3, 4 or 5 — he’s done this for a long time.”

Miller represents just one of a multitude of changes made to the Rangers lineup this season, which continued Sunday night as newcomers Juuso Parssinen and Calvin de Haan made their Blueshirts debuts after a trade with the Avalanche sent Jimmy Vesey and Ryan Lindgren to Colorado.

With Nashville skating on the second night of a back-to-back schedule, the Rangers took advantage of a tired Predators team that has lost 10 of its past 13.

Calvin de Haan is pictured during the Rangers’ win over the Predators on March 2. Carlos Toro/New York Post

Rangers goalie Jonathan Quick was stellar in his 800th NHL game, stopping all 35 shots he faced to record his third shutout of the season and 63rd of his career.

The Rangers more than doubled the Predators shots on goal, 15-6, through the first period, from which they emerged with a 1-0 lead.

Artemi Panarin scored his first goal since Feb. 5 to put the Rangers on the board, winding up and blasting one past Nashville goalie Justus Annunen off a rush opportunity sprung by a sharp outlet pass from Alexis Lafrenière.

The Rangers celebrate Brett Berard’s goal during their win against the Predators on March 2. Carlos Toro for the NY Post

Nashville took seven of the 10 total penalties called in the game, and the Rangers scored on one of their four power plays.

Instead of taking the shot, Panarin dished to Miller crashing the side of the net at the last second for the 2-0 lead in the second period.

It counted as Miller’s ninth power-play point since Jan. 18, which is tied for third in the NHL.

Read the expert take on the Blueshirts

Sign up for Larry Brooks’ Inside the Rangers, a weekly Sports+ exclusive.

Thank you

The Rangers had a three-goal advantage just under 2 ½ minutes later, when K’Andre Miller backhanded one in off the rush for his fifth goal of the season.

Brett Berard then capped the scoring with a snipe from the slot at the end of the third period.

“Good win,” head coach Peter Laviolette said. “We needed it.”