It was like a scripted movie.

The New York Yankees looked to be cruising for an easy 5-2 victory in the ninth and final inning Thursday against the Baltimore Orioles. The final home game of Derek Jeter's career looked to be a simple 3-run win. That was until Adam Jones and Steve Pearce both hit home runs tying up the game 5-5 in the top of the ninth inning.

Yankees fans sat and watched in disbelief thinking, "this wasn't supposed to happen." How could such a perfect night end like this?

Because it wasn't perfect just yet.

Orioles relief pitcher Evan Meek came in for late game duties, hoping to force extra innings, and wouldn't you know it -- Jeter was on deck.

With Antoan Richardson on second base, Jeter came to the plate. Yankees fans cheered for their hero and chanted his name, knowing this would be the final time they see him batting at home. It felt as if the entire borough of the Bronx was shaking.

Meeks threw a fastball, and Jeter hit a single to right field, as we've seen him do for years. Richardson scored from second base beating the throw home and Jeter got his first walk-off hit since 2007. Yankee Stadium erupted with Jeter jumping and reaching for the sky, as shown above.

Yankees win 6-5.

Jeter didn't just show up in the ninth and final inning: he stole the day. In the very first inning, Jeter hit a double to deep left field, scoring Brett Garner. Later, in that same inning, Jeter scored a run and tied the game 2-2. In the seventh inning, Jeter would again reach base and Ichiro Suzuki with Jose Pirela scored.

Jeter finished the game with two hits, a run scored and a game high three runs batted in.

Even though the Yankees won't be making the playoffs, the memories of this incredible night will live on forever. Jeter retires as one of the greatest players in franchise history, having the most hits ever by a Yankee. He also has the most career hits by a shortstop in Major League Baseball history.

After the game, notable Yankee greats were at the stadium, on the field to greet Jeter -- players such as Mariano Rivera, Jorge Posada, Bernie Williams, Andy Pettitte, Tino Martinez and Joe Torre.

Jeter will always be remembered for winning five World Series titles and a World Series MVP. He always played best when the lights shined the brightest. One of the most perfect examples came in 2011 when Jeter got his 3,000th career hit; a home run at Yankee Stadium.

Jeter has 3,463 career hits, and this one, his last one at home, will always be remembered.

Jeter walks away with a walk-off in this Bronx Tale.

Follow Damon Salvadore on Twitter @DamonSalvadore1