Hi,
I made a small php configuration that runs a cmd command that is designed to create a Scheduled Task on Windows.
Code snippet
$createTaskCmd = "schtasks.exe /CREATE /SC MONTHLY /D 15 /TN mytask /TR C:\Windows\System32\notepad.exe /ST 00:00:10 /f /RU System";
shell_exec($createTaskCmd);
keep in mind I also tried using, 'exec' and I also tried out this solution. I'm trying to create a temporary task and have it be destroyed much later.