Scoreless game two outs bases loaded full count postseason survival on the line in the home finale.

And adding the moment the opposing pitcher is a former Royals hero.

Justin Maxwell provided the dramatic finish with an exclamation point a grand slam deep into the left-field bullpen to lift the Royals over the Rangers 4-0.

Maxwell turned on Joakim Soria’s fastball and the large Kauffman Stadium crowd roared the approval. The dugout emptied and the Royals enjoyed perhaps the happiest moment of the season.

Plenty of work remains for a team that entered the day 3 ½ games away from the wild card position but the Royals now embark on the final seven-game road trip on the wings of an amazing triumph.

The blast came off Soria the former Royals reliever who last pitched here in 2011 before arm problems interrupted his career.

Eric Hosmer opened the 10th with a double the scooted between Adrian Beltre and the third-base bag. Until that moment Rangers’ pitchers had retired 17 straight Royals eight by strikeout.

Butler was next and Soria was summoned for the righty-righty matchup. Butler never got a chance as the Rangers intentionally walked him and the Royals had a second baserunner in an inning for the first time. Getz got the pinch running call and it paid off immediately when Salvador Perez hit a one-hot smash to shortstop Elvis Andrus’ right.

Andrus knocked it down but couldn’t get the throw in time to second to get the speedy Getz.

The bases were loaded when Mike Moustakas popped weakly to third for the first out.

Royals manager Ned Yost sent George Kottaras to pinch hit for Lorenzo Cain and that didn’t pay off when Kottaras grounded to Ian Kinsler in a drawn up infield. Kinsler’s throw to the plate easily beat Hosmer.