NEW YORK (AP) -- No matter how well Michael Pineda or anyone else in pinstripes pitches, the New York Yankees aren't going anywhere if they don't start hitting.
Scott Feldman shut down the slumping Yankees again, and Robbie Grossman snapped a seventh-inning tie with a two-run single that sent the Houston Astros to a 5-2 victory Wednesday night.
"We've got to score more than two runs. It's hard to win when you only score two runs," manager Joe Girardi said. "Our pitching has been pretty good, but that's a pretty tall task."
Dexter Fowler had an RBI double, Jose Altuve added a run-scoring single, and the Astros (54-73) did more damage to New York's postseason chances with their fourth victory in five meetings this year.
Houston, which has finished with the worst record in the majors each of the past three seasons, won a series at Yankee Stadium for the first time in four tries.
The fourth-place Astros will go for a three-game sweep Thursday afternoon.
Stephen Drew hit his first homer for New York, and Jacoby Ellsbury drove in a run with a bunt single. But the Yankees (63-61) lost for the seventh time in nine games and dropped five games out of a playoff spot.
They are 2 for 17 with runners in scoring position during the series and have totaled 20 runs in their last nine games, never scoring more than four in that stretch.
"It's frustrating to score two, three runs a night. It's definitely frustrating," catcher Brian McCann said.
Ellsbury flied out against Jose Veras with two on to end it. New York stranded 10 in all.
Feldman (7-9) matched a career high by throwing 121 pitches, working out of trouble to last 6 2-3 innings. He gave up two runs and eight hits, striking out a season-best seven.
The right-hander tossed 6 2-3 shutout innings to beat the Yankees on opening day. He entered with a 2.30 ERA during four straight quality starts against New York.
"He's a veteran guy and he's been around the game for a long time. He knows how to pitch," Fowler said.
Making his second start since a long injury layoff, Pineda took a 2-1 lead into the seventh. He threw 89 pitches and was pulled after a leadoff walk to Jason Castro.
"I'm feeling good today. I'm very excited," Pineda said.
Looking to rest his best relievers following a heavy workload the past few days, Girardi turned to David Huff (2-1) and Esmil Rogers. They failed miserably, ruining the manager's bobblehead night.
Houston smacked five straight one-out singles, four off Rogers, in a span of 10 pitches. No. 9 batter Jake Marisnick tied it with a single to left, Grossman put the Astros up 4-2, and Altuve added an RBI single as the boos increased for Rogers.
"When the other guys are used a lot, guys have to step up," Girardi said. "It just didn't happen tonight."
Kevin Chapman struck out Ellsbury with runners at second and third to end the bottom half. Veras worked the ninth for his first save since Sept. 2, 2013, with Detroit.
Seemingly resigned to trying small ball, the Yankees went 4 for 5 on stolen base attempts in the first five innings. But one pitch after Chase Headley was caught at second in the fourth, Drew hit his fifth home run of the season. The other four came with Boston before a July 31 trade.
Astros: Regular closer Chad Qualls was unavailable because of a stiff back. He is day to day.
Yankees: Slumping DH-RF Carlos Beltran sat out because of pain in his troublesome right elbow and was examined by a doctor. He had his third cortisone shot and is day to day. "Hopefully, this is the last one," said Beltran, who hopes to return to the lineup on Friday. "At the end of the year I have to address it and get the surgery to get it over with, but right now I'm just trying to finish the season." ... RHP David Phelps (elbow inflammation) played catch and will try to get ready to come off the disabled list as a reliever, Girardi said.
LHP Dallas Keuchel (10-8, 3.11 ERA) makes his first career start against the Yankees in the series finale. RHP Brandon McCarthy is 4-2 with a 2.30 ERA in seven outings for New York since he was acquired from Arizona in early July. The Yankees have been shut out in his past two games. It will be the 26th start of the season for McCarthy, setting a career high. Carter has two homers in three at-bats against the right-hander, who lost 5-1 to Houston on June 11 with the Diamondbacks.
HERE COMES TROUBLE
Fowler is 9 for 20 (.450) with six extra-base hits against the Yankees this year.
Yankees LF Brett Gardner tumbled head over heels over a low retaining wall to make a courageous catch in the ninth.