TORONTO — Todd Frazier homered and had three RBI, Gary Sanchez and Didi Gregorius also went deep Wednesday night, and the New York Yankees overcame a shaky start by Masahiro Tanaka to beat the Toronto Blue Jays, 11-5.

Rookie Garrett Cooper had four hits for the Yankees, who had not scored in double figures since a 13-4 win at Houston on June 30. New York’s 17 hits were one shy of its season high set June 10 against Baltimore.

Frazier, who entered in a 5-for-33 slide, went back-to-back with Sanchez in the second, hit a two-run double in the fifth, then added a leadoff single in the eighth for his first three-hit game since the Yankees acquired him from the Chicago White Sox. He was hit by a pitch in his final plate appearance.

Cooper wasn’t in the original starting lineup but replaced Clint Frazier, who felt tightness in his oblique during batting practice and is scheduled for an MRI on Thursday.

ANGELS 5, ORIOLES 1: After 10 seasons in the minors and playing in his first major league game, Cesar Puello singled in the go-ahead run and C.J. Cron added a two-run homer to lead Los Angeles at Anaheim, California.

Right-hander Troy Scribner (2-0) earned the win in the second start of his career. He allowed one run and two hits. Scribner didn’t walk a batter and struck out four.

MARINERS 6, ATHLETICS 3: Nelson Cruz homered twice, Kyle Seager also went deep and Seattle won at Oakland, California, to complete a two-game sweep.

Robinson Cano had two hits and scored twice, and Ben Gamel singled and made a sparkling defensive play to help Seattle to its fourth win in five games.

NATIONAL LEAGUE

GIANTS 3, CUBS 1: Madison Bumgarner allowed four hits over seven innings to win for the second time since returning from a dirt bike accident, helping San Francisco complete a winning homestand for only the second time this season.

Bumgarner (2-5) struck out seven and gave up five hits.

REDS 8, PADRES 3: Joey Votto extended his longest hitting streak of the season to 14 games, Stuart Turner hit his first major league homer and Cincinnati won at home.

NATIONALS 10, MARLINS 1: Ryan Zimmerman had four run-scoring hits, including two solo home runs, drove in five runs and became the franchise’s all-time RBI leader as Washington won at home.

PHILLIES 3, BRAVES 2: Odubel Herrera drove in a run with two triples as visiting Philadelphia completed its third series sweep of Atlanta this season.

INTERLEAGUE

RANGERS 5, METS 1: Martin Perez allowed three hits over eight innings, Joey Gallo hit his 32nd home run and Texas won at New York for a two-game split.

ROCKIES 3, INDIANS 2: Charlie Blackmon homered in the 12th inning, lifting Colorado at Cleveland.

TIGERS 10, PIRATES 0: Justin Verlander allowed one hit over eight innings and Detroit won at home.