Ke’Bryan Hayes knocked a home run and added a triple to lead the Pittsburgh Pirates to a 4-2 win over the Milwaukee Brewers.