While the Yankees brainstorm how to best sort out their postseason rotation, there’s still a chance they can do what they did Wednesday night against the Rangers in a 4-1 win.

After using Chad Green as the opener, they then brought on Luis Cessa and the right-handers combined to toss five shutout innings before Aaron Boone turned to the heart of his bullpen, with Adam Ottavino coming in to start the sixth.

With the victory, the Yankees improved to 11-2 when Green serves as an opener.

And it continued a solid run by Cessa, who has pitched nine shutout innings in his last four outings after three straight rough appearances in mid-August, when he gave up seven runs in 5²/₃ innings.

The excellent pitching performance came a day after James Paxton’s seven brilliant innings and was backed by a two-run homer from Aaron Judge and a solo shot by Gleyber Torres, as the Yankees ended their homestand by going a season-high 43 games over .500 (92-49).

Their success with openers has led Boone to consider using the strategy in the postseason, although the Yankees’ rotation has performed better of late.

“That kind of scenario is certainly possible,’’ Boone said of the opener. “We’ll see how this month unfolds.”

The health and performance of Luis Severino and Dellin Betances could play a role in that. If they are full-strength, the Yankees may not have to go that route, but Boone acknowledged it’s “certainly something that could be on the table. I feel like we could go out and be really effective.”

Green allowed a pair of two-out baserunners in the first inning before he struck out Danny Santana to end the threat, then threw a scoreless second before Cessa entered.

Cessa’s latest excellent performance came a day after one of the Yankees’ top prospects, Deivi Garcia, opened more eyes with three shutout innings in relief for Triple-A Scranton/Wilkes-Barre.

General manager Brian Cashman hasn’t dismissed the idea of adding the 20-year-old Garcia to the bullpen this month, which is why the right-hander was shifted there last month with SWB after working as a starter throughout his minor league career.

The idea of bringing up Garcia for the stretch run and possibly the playoffs is intriguing, but it might not be the best use of a roster spot, since the Yankees would have to put him on the 40-man roster and start his major league clock.

And there’s no guarantee Garcia would be a better option than Cessa.

“Cessa’s had a really good year,’’ Boone said. “For the most part, he’s thrown the ball really well for us in different roles.”

Before the game, Boone said Garcia would remain with SWB through its postseason run, which is scheduled to continue Friday.

“He’ll stay there for playoffs,’’ Boone said of Garcia. “He’s one of those guys that has gotten on our radar in a big-time way.”

He has pitched in just 11 games with SWB — and just six in relief.

“I think he’s still finding his way at that next level, too,’’ Boone said of Garcia, who opened the season in Single-A Tampa, where he made four starts, then got bumped up to Double-A Trenton for 11 more starts. His most recent promotion came on July 15.

“He’s a very young guy,’’ Boone said. “He’s still developing in a lot of ways.”

The Yankees’ comfortable lead in the AL East has given them the breathing room to make decisions like the one they’re making with Garcia.

Cessa, meanwhile, permitted just two baserunners and got offense from familiar sources.

Judge gave the Yankees a 2-0 lead in the bottom of the third, following a Brett Gardner walk, by sending an opposite-field two-run shot into the right-field seats. It was Judge’s 20th home run of the season.

In the fourth, Torres’ solo shot made it 3-0 against ex-Yankee Lance Lynn. Austin Romine added an RBI double to score Mike Tauchman in the sixth.

Ottavino was followed by Tommy Kahnle and Zack Britton, who both tossed scoreless innings before Cory Gearrin allowed a homer to Rougned Odor in the ninth.