Andrew McCutchen homered twice, pinch-hitter Jason Jaramillo singled home the go-ahead run in the eighth inning and the Pittsburgh Pirates beat the Houston Astros 5-4 on Wednesday night.

McCutchen hit a solo homer in the first after Houston had taken a 3-0 lead and a three-run shot in the fifth to tie the game at 4.

Jaramillo's single off Sergio Escalona scored pinch-runner Chase d'Arnaud, giving Clint Hurdle his 600th career managerial victory.

Carlos Lee, Matt Downs and Clint Barmes homered for the Astros, who have lost five of six.

The Pirates' bullpen combined for 5 2-3 innings of scoreless relief, with Tony Watson (2-2) getting the final out in the eighth and Joel Hanrahan working a perfect ninth for his 36th save in 39 opportunities.

The loss drops the Astros closer to the 100 loss mark for the 2011 season.

More From Talk 103.9 & 1340