executeCommandLine does not work

Hi,

In a rule I try to use executecommandline, but the executable is not launched.

My Openhab version is 3.1.1 on a windows server 2016 inside a VM.
Openhab is launch manually ( not as a service )

I use Voicecommand which work perfectly, here is the rule :

rule "Light Control"
when Item VoiceCommand received command then
	var String command = VoiceCommand.state.toString.toLowerCase
	logInfo("Voice.Rec","VoiceCommand received "+command)

    if (command.contains("allumer") ){
		if (command.contains("sapin")) {
			sendHttpGetRequest("http://192.168.1.136/cm?cmnd=Power%20On")
		}
		if (command.contains("guirlande")) {
			sendHttpGetRequest("http://192.168.1.134/cm?cmnd=Power%20On")
		}
		if (command.contains("laser")) {
			sendHttpGetRequest("http://192.168.1.133/cm?cmnd=Power%20On")
		}
		if (command.contains("dehors")) {
			sendHttpGetRequest("http://192.168.1.132/cm?cmnd=Power%20On")
		}		
	}
    if (command.contains("éteindre") ){
		if (command.contains("sapin")) {
			sendHttpGetRequest("http://192.168.1.136/cm?cmnd=Power%20Off")
		}
		if (command.contains("guirlande")) {
			sendHttpGetRequest("http://192.168.1.134/cm?cmnd=Power%20Off")
		}
		if (command.contains("laser")) {
			sendHttpGetRequest("http://192.168.1.133/cm?cmnd=Power%20Off")
		}
		if (command.contains("dehors")) {
			sendHttpGetRequest("http://192.168.1.132/cm?cmnd=Power%20Off")
		}
	}
	if (command.contains("canal") ){

		val results=executeCommandLine(Duration.ofSeconds(5),"c:\\openhab2\\flop\\controle.exe")
                logInfo("test",results)
		}
    end

controle.exe is not launched, I don’t know why. ( word canal is detected, i try to put the executecommandline at the strart of the script, it is not working )

In the log I have that : 2021-12-18 16:28:37.902 [INFO ] [org.openhab.core.model.script.test ] -

Any ideas ?

Thanks in advance.

executeCommandLine( Duration.ofSeconds(5), "cmd", "/c", "C:\\Users\\XYZ\\test_bat.bat" )

I tried that but it doesn’t work either.
I finally put the file in userdata folder and it works, I don’t know why !