This is the moment that Brian Cashman faced a team in blue even more intimidating than the Yankees.

The Bronx Bombers’ longtime general manager’s harrowing encounter with Connecticut cops — in which they forced him out of his car at gunpoint last week — was captured on a police bodycam video released Wednesday.

“Put your hands out the window!” shouts an officer who had pulled over Cashman’s white Jeep Wrangler in Darien last Friday because it had been stolen earlier in the week.

Cashman, 52, his hands in the air, then slowly walks backward from his vehicle, as instructed, as the cop trains a pistol in his direction.

The GM tries to explain that the NYPD had already recovered the Jeep in The Bronx and he was driving it to police in Norwalk for an evidence check.

“I picked it up,” he starts to explain.

But he is quickly cut off by one of the officers, who says, “Understood sir, we’ll talk to you in a second.”

“I know but it was taken off by the NYPD a few day ago,” the GM says, apparently referring to the list of stolen cars.

“And we all know how they are, all right?” the cop responds.

Even after the situation calms down, and the officer with the bodycam says, “You’re all set sir,” Cashman keeps his hands on top of his head for several seconds.

After letting Cashman get his ID from the car, one of the officers takes an entirely new tone.

“You look very familiar to me,” he says.

“I’m the GM of the New York Yankees,” Cashman explains.

“Yeah, I know,” the cop answers. “I used to see you at Brook Street Bagels when I was an Eastchester cop. I apologize for the embarrassment.”

“Clear it,” the cop then tells the other officers. “Clear it. Turn all the lights off and we’re good. No spectacle.”

A plainclothes officer then enters the video and explains to Cashman apologetically that police had received a report of “a guy with a gun at a doctor’s office driving a white Jeep, and then I ran your plates and they came back stolen.”

The officer with the bodycam then says, “I didn’t want to say, ‘It’s Brian Cashman over the radio.’ ”

The cop then laughs and jokes, “Now you’ve got a story for the guys.”

The video is broken into two parts that run for a total of 1 minute and 30 seconds, but Cashman said the entire episode took about 15 minutes.

Cashman, who lives in the village of Rowayton in Norwalk, said last week the Jeep was stolen a week earlier and found dumped in The Bronx.

Cops there towed the vehicle to a local repair shop, where Cashman picked it up on Aug. 7, a Wednesday.

He then arranged to drive it to Norwalk police headquarters on Friday so they could “process it” for any evidence of the theft. That’s what he was doing when he ran into the cops in Darien.

After the incident, he told The Post that he had no hard feelings toward the officers.

“I had a welcoming committee descend up on me as I pulled out of the gas station,” Cashman said. “They executed a very tactful interception.

“I have high respect for all law enforcement. They do an amazing job, whether you’re in Connecticut or New York City. Sometimes, unique circumstances occur.”

He said the apologetic cops even gave him a police escort to the Norwalk station house so he could finally drop off the trouble-causing vehicle.

And, he quipped, “the public should take encouragement when someone is in a stolen vehicle — they’re not going to get very far.”

Cashman has been the general manager of the Yankees since 1998, and is the second-longest-tenured GM in franchise history.

The team has won four World Series titles on his watch, and he is the architect of the current first-place squad.