Tim Anderson recently admitted he has never watched the movie “Field of Dreams.” Well, he just submitted a pretty good script for a sequel.

Anderson hit a two-run homer with one out in the ninth inning into the cornfield to end the “Field of Dreams” game in cinematic fashion, as the Chicago White Sox outslugged the New York Yankees 9-8 Thursday night in the first Major League Baseball game in Iowa.

Anderson, who had an earlier RBI double, hit the first pitch from Zack Britton (0-1) for his 13th homer of the season.

Clearly having as much fun as anyone in attendance, Anderson danced his way around the bases after the showstopper of a hit and wiggled his hands near his neck as he headed for home and the celebratory dousing at the plate from his teammates.

“Being able to walk it off was definitely one of the best moments of my career, for sure,” said Anderson, who sent the crowd of 7,832 back through the corn and to their cars — after a light-and-fireworks show — at the made-from-scratch stadium.

Aaron Judge and Giancarlo Stanton each hit two-run homers for the Yankees in the top of the ninth off All-Star closer Liam Hendriks (7-2), as the movie-themed throwback event became a home run hitting contest into the cornfield.

This was precisely the thrill many players hoped aloud for prior to the night. There were eight long balls in all, two by Judge.

It had a Hollywood finish, too, with the game-clinching shot by Anderson. So what if it was more from “The Natural” than “Field of Dreams?”

“He’s been the energy, the man, of our team. What a leader,” said White Sox acting manager Miguel Cairo, who filled in for Tony La Russa.

They played next to the filming site of the beloved 1989 movie starring Kevin Costner, Amy Madigan, Ray Liotta and James Earl Jones, and even the Yankees fans who made the trek could hardly have headed home anything but happy with the experience