Derek Jeter is doing his part to extend his career beyond Sunday.

The retiring shortstop continued his red-hot homestand Monday night, driving in three runs in the Yankees' 5-0 victory over the AL East champion Orioles in front of 35,614 on a crisp night at the Stadium.

Jeter went 1-for-3 with a walk, improving to 9-for-20 with one homer, three doubles and six RBIs in the first five games of this eight-game homestand. His streak of multi-hit games ended at four, but he is 10-for-22 since snapping an 0-for-28 stretch Wednesday.

The Yankees (81-75), who won for the fifth time in six games, still are an overwhelming favorite not to make the postseason. They are four games behind the Royals (85-71) for the second AL wild-card spot with six games to play, and the Mariners (83-73) and Indians (82-75) also are ahead of them.

"I see it as we've got to win a game tomorrow. I don't complicate things," Jeter said. "We dug ourselves a hole, obviously, and we need to win. You continue to play hard, continue to fight, until you're out of games."

"I really believe we pretty much have to win out," said Joe Girardi, who knows even that wouldn't guarantee anything. "You never know. Strange things happen in sports."

To a degree, Jeter overshadowed another brilliant game by Michael Pineda, who battled a shoulder injury much of the year and, before that, two incidents with pine tar. He was perfect for 41/3 innings before allowing one hit and one walk in 71/3 innings and lowering his ERA to 1.93.

"He really picked up where he left off," Girardi said of Pineda. "He was throwing the ball great for us before he got hurt."

"He's nasty," Jeter said. "Seems like every time he's pitched, he's almost dominated."

Pineda (4-5) struck out a season-high eight. "Tonight, my slider was working really good,'' he said. "Everything was working good."

After walking Christian Walker with one out in the eighth on his season-high 106th pitch, Pineda was replaced by Shawn Kelley, who retired two straight.

The Orioles' Wei-Yin Chen (16-5, 3.56) gave up four runs (two earned) and six hits in six innings.

The offensive support for Pineda was rare and much appreciated. Despite a 2.30 ERA in his seven starts since being reinstated from the 60-day disabled list, the 6-7 righthander had gone 1-3 in that span. Four of his 2014 losses had come in starts in which he recorded at least five innings pitched and allowed two or fewer earned runs.

The Yankees scored two unearned runs in the third. After Ichiro Suzuki reached on third baseman Ryan Flaherty's throwing error, Jose Pirela -- making his major-league debut as the DH and becoming the franchise-record 57th player used by the Yankees in 2014 -- ripped a drive into the gap in left-center for an RBI triple. Brett Gardner's fly to shallow right failed to get Pirela in, but Jeter's grounder to short did, making it 2-0.

Jeter's two-out, two-run double down the leftfield line in the fifth made it 4-0, prompting by far the night's loudest roar, and Chase Headley homered into Monument Park in the eighth.

"I feel good," Jeter said. "I don't want to jinx anything, but I feel good. The fans have been energetic. That makes it fun for us to play. I've enjoyed these first few games of the homestand and we have three more. The fans are what make it fun."