It’s a script that many Hollywood directors would consider too unrealistic.

Trailing by two goals with less than 10 minutes remaining, No. 7 Newfield rattled off three in less than six minutes to defeat No. 10 Bay Shore, 4-3, Monday in a first-round Suffolk AA girls soccer game. The final goal, with 3:41 left, came off a header by Sierra Rosario off Vaneeya Volino’s third assist in the rally.

“I think most teams would have put their head down and felt like they lost it already,” Rosario said. “But we realized we had plenty of time, and our team has so much heart.”

Kristen Prevosta started the comeback, fielding a free kick from Volino in the 18-yard box before putting the ball in the lower left corner to make it 3-2 with 9:36 remaining.

Speaking of the chance for a comeback, Prevosta said, “I’m going to be honest, I thought it was slim to none. But we kept pounding and scored the second goal and I knew we were coming back.”

Taylor Regensburger tied it with 6:38 remaining off a breakaway pass from Volino.

advertisement | advertise on newsday

“I can’t even describe it. It’s so amazing,” said Regensburger, a defender but also the team’s leading scorer. “We’ve never made it this far, and to come back after being down 3-1 and beat that team is crazy.”

After Volino’s goal gave host Newfield a 1-0 lead, Talani Barnett, Nicole Chimienti and Lexi Grassi scored in an 11-minute span to give Bay Shore (10-6-2) a 3-1 lead.

“It’s really been like a roller coaster. We didn’t know what it was going to be walking into this,” said Newfield goalkeeper Alexis Saladino, who had multiple diving saves against the tough Bay Shore attack.

Newfield will visit No. 2 Smithtown West on Thursday.

Newfield (11-3-2) totaled only 15 wins in the three years prior to this season after a 2012 stint in the Suffolk developmental league, designed for weaker teams to play competitive games without the possibility of postseason play. Many girls on this Newfield team were on a two-win team in 2013.

“I think it’s remarkable to see how quick that turnaround was, but I think it’s like that old saying ‘Hard work will beat talent that doesn’t work hard,’ and I think that’s it,” said coach Domenik Veraldi, who was an assistant in 2012. “They just forced themselves to continually work, and they’re at the point now where they’re going to turn a few heads.”