set JAVADIR="C:\java\jdk-11.0.1\jdk-11.0.1"
set JARFILE="C:\temp\MyProgram.jar"
set STARTDIR="C:\temp"
cd %STARTDIR%
%JAVADIR%\bin\java.exe --module-path %JAVADIR%\javafx\lib --add-modules=javafx.controls,javafx.fxml,javafx.web -jar %JARFILE%
PAUSE
Modify JAVADIR, STARTDIR and JARFILE variables with the location to your JDK and the location of the jar file you want to execute.