Make sure you have Java 17 installed
Then create the start.bat file
Into it, paste:
"C:\Program Files\Java\jdk-17.0.9\bin\javaw.exe" -Xmx4G -Xms2048M -jar forge-14.23.5.2860.jar
pause
Keep the quotation marks and make sure the Java path is correct
Start the server with the bat file