executeCommandLine + Service = Foreground? (Windows)

I am on Windows running openHAB as a service. I am attempting to create a “movie mode” which when turned on will turn my TV on, open Kodi on my computer, and turn my lights off. Everything is working except for opening Kodi.

executeCommandLine(“C:\Program Files (x86)\Kodi\kodi.exe”)

Because openHAB is running as a service it uses the SYSTEM account in Windows which in turn launches Kodi under the SYSTEM account which isn’t able to display in the foreground. Any ideas?

Thank you,
Daniel

Maybe you should check the runas command from Windows.
It allows you to run a process as a different user…