Ways to kill UiRobot without killing the service

Hello,

There are time frame in the week that we need to stop the robot from running because of weekly maintenance. Before shifting to the virtual machine this bat works:

@echo off
taskkill/F /IM chrome.exe
taskkill/F /IM UiRobot.exe
:exit

but right now on the VM, when this runs on task scheduler, the uirobot service is killed and we need to restart the service. I tried to add restart service on the .bat but it seems restarting uiservice corrupts the execution logs and we have problem with the elastic log then.

Any idea, how we can configure this better? thanks,