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_with_log.py" ^
/ScriptOutput="%WORKING_DIR%Speos_log.txt" ^
/ExitAfterScript=True ^
/Headless=False ^
/Splash=True ^
/UseCurrentDirectory=True