Run a job once Sage 200 is open

Hi all, 

is it possible to add a job/function that will run once the Sage 200 is open? 

I want to do something like this: if (DateTime.Now.Date=='07/01/2021') {//Do something }

I want to do it with windows scheduler where everyday it will run a program and validate above but I think its not a suitable solution.

Thank you.