I see two options.
You can write a windows service.
This is not as much work as it seems. You can listen to commands using, for example, WCF. If you set the privilege of this service in Local System, you can run this service to test your device.
You can use scheduled tasks.
, , .