I have written a program in Matlab (file .m) that needs to run daily at a specified time on my server (Windows Server 2012). I achieved this using the Task Scheduler and it works fine without any issue. My problem is that all the times the Task Scheduler runs my .m script, a new Matlab session is opened. I would prefer to have only one Matlab session running and that Task Scheduler runs the .m script daily always on that session, without opening multiple Matlab sessions. Do you have any suggestion to overcome this issue please? Thank you in advance for your help.