Travis Shaw scored on a throwing error in the 10th inning, and the Toronto Blue Jays beat the Baltimore Orioles 8-7 Tuesday night after blowing a four-run lead.

Shaw was at second base in the 10th when Cole Sulser (1-2) walked Vladimir Guerrero Jr., and both runners advanced on a bunt. Lourdes Gurriel Jr. followed with a sharp grounder to first that Chris Davis stabbed with a dive, then threw home from a sitting position.

The ball took one hop and went through the hands of catcher Pedro Severino an instant before Shaw crossed the plate.

Baltimore Orioles' Anthony Santander during reacts with Renato Nunez after hitting a two run home run during the first inning of a baseball game against the Toronto Blue Jays, Tuesday, Aug. 18, 2020, in Baltimore. (AP PhotoTommy Gilligan)

Baltimore Orioles' Anthony Santander during reacts with Renato Nunez after hitting a two run home run during the first inning of a baseball game against the Toronto Blue Jays, Tuesday, Aug. 18, 2020, in Baltimore. (AP PhotoTommy Gilligan)

Anthony Bass (1-0) entered in the ninth and got the final out of the game.

In the last of the 10th, Dwight Smith Jr. got caught in a rundown after sprinting too far past third base on a one-out single by Cedric Mullins.

Randal Grichuk extended his torrid hitting surge for Toronto, homering and driving in four runs. He connected with a man on against Wade LeBlanc in the third inning and greeted reliever Travis Lakins with a bases-loaded double to ignite a five-run fifth that made it 7-3.

Toronto Blue Jays starting pitcher Nate Pearson stands on the pitching mound after Baltimore Orioles' Anthony Santander hit a two-run home run during the first inning of a baseball game, Tuesday, Aug. 18, 2020, in Baltimore. (AP PhotoTommy Gilligan)

Toronto Blue Jays starting pitcher Nate Pearson stands on the pitching mound after Baltimore Orioles' Anthony Santander hit a two-run home run during the first inning of a baseball game, Tuesday, Aug. 18, 2020, in Baltimore. (AP PhotoTommy Gilligan)

Grichuk is on a seven-game hitting streak — including four straight multi-hit games — to raise his batting average 75 points to .333. In addition, over the last five games he has four homers and 11 RBIs.

Travis Shaw also homered for the Blue Jays, who can complete a three-game sweep Wednesday.

Anthony Santander hit a pair of two-run homers for the Orioles, giving him nine for the season along with 26 RBIs. But Baltimore dropped its third straight and has lost four of five since a six-game winning streak.

Toronto Blue Jays' Randal Grichuk, right, celebrates with Vladimir Guerrero Jr., back left, and Lourdes Gurriel Jr., front left, after a baseball game against the Baltimore Orioles, Monday, Aug. 17, 2020, in Baltimore.  (AP PhotoNick Wass)

Toronto Blue Jays' Randal Grichuk, right, celebrates with Vladimir Guerrero Jr., back left, and Lourdes Gurriel Jr., front left, after a baseball game against the Baltimore Orioles, Monday, Aug. 17, 2020, in Baltimore. (AP PhotoNick Wass)

Grichuk's offensive show put Toronto starter Nate Pearson in position to earn his first big league win. But the highly touted prospect was yanked in the fifth after allowing his third homer, a two-run shot by Chance Sisco that got Baltimore to 7-5.

Pearson now has a 6.61 ERA after four starts.

TOP GUNS

Toronto pulled off a rare feat Monday night when Grichuk had four RBIs and leadoff man Cavan Biggio added three. According to Elias, it was only the seventh time since 1920 (when the RBI became a stat) that all seven of a team's runs were driven in by the top two batters in the lineup.

TRAINER'S ROOM

Blue Jays: SS Bo Bichette received a second opinion on his ailing right knee, which was confirmed to be a sprain, manager Charlie Montoyo said. There is no timetable for his return. ... 1B Rowdy Tellez was given the day off after getting hit in the head during a collision at first base Monday.

Orioles: SS José Iglesias (left quadriceps strain) was placed on the 10-day injured list. He has been playing through the injury for weeks, and manager Brandon Hyde decided it was time to take action. “We just felt like giving him some extra days would be beneficial to him and us the rest of the season," Hyde said. Iglesias is batting .400 but has been serving mostly as the designated hitter, starting only two games at SS in August. ... Reliever Hunter Harvey (right forearm strain) should be back by the end of the month, Hyde said.

UP NEXT

Blue Jays: Tanner Roark (1-1, 6.00 ERA) makes his fourth start of year Wednesday afternoon in the series finale. He's 0-3 with a 6.88 ERA lifetime against the Orioles, but hasn't faced them since 2016.

Orioles: Tommy Milone (1-2, 4.00) last pitched against the Jays in 2014 for Oakland.

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sports