REM Set the root directory to the location of the Speos executable
set root=C:/Program Files/ANSYS Inc/v242/Optical Products/Speos/bin/
REM Set the working directory to the directory of the script
set WORKING_DIR=%~dp0

REM Run the Speos Launcher with the following parameters
"%root%AnsysSpeosLauncher.exe" ^
/RunScript="%WORKING_DIR%Python_arg.py" ^
/ScriptOutput="%WORKING_DIR%Speos_log_arguments.txt" ^
/ScriptArgs="5, 10" ^ 
/ExitAfterScript=True ^
/Headless=False ^
/Splash=True ^
/UseCurrentDirectory=True