There are two java lines and the / are mixed up
Use this as script:
"C:\Program Files\Java\jdk-17.0.10\bin\javaw.exe" -Xmx8G -Xms2048M @libraries/net/minecraftforge/forge/1.20.1-47.2.0/win_args.txt %*
pause
Replace the complete script with it (you don't need the REM lines)
Make sure the java path is correct and keep the quotation marks