if this is your path to java 17 the run.bat file should look like this:
// here should be the "@echo off" line and the "REM" lines
"C:\Program Files\Java\jdk-17.0.4\bin\java.exe" @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.19-41.0.61/win_args.txt %*
pause