In The Batman (2022), James Gordon is already the Commissioner of the Gotham City Police Department from the start.
You might be thinking of the Batman: Arkham video game series, where Gordon begins as a Captain and rises to Commissioner over the story.
In the new film, he's firmly established as Commissioner, working with Batman to clean up Gotham.