gh pr new was deprecated in 2021. Its no longer a valid command.
The official command is gh pr create. You can see this in the official documentation here: gh_pr_create
The alias new was removed in version 2.0 of the GitHub CLI.
If a developer tries to run it on their local machine with a modern version of the gh CLI, the script will fail.