Yes, you can run external software using
WebCam Monitor. You can also send a parameter to your external software.
Add your webcam, navigate to 'Launch Program Settings' dialog and select your .exe file location by clicking 'Browse' button. Use the parameter field if any parameters are required.
Now, when motion is detected your program to turn on the lights will run.