Here is what I came up with...
This is code for a .bat file that will make two scheduled tasks.
1) Fast Update Every Day at 5:00AM
2) Slow Optimize Monthly on the 1st at 2:00AM
Note: If the program version changes in the future to a newer version higher than 4.1, you have to edit the "set myd" path to the new version number before using this script or else you will see a file path error when you run it.
Note: If you upgrade MyDefrag to a newer version higher than 4.1, be sure to delete the two tasks in Control Panel - Scheduled Tasks, edit the "set myd" path with the new version number, then run this script again.
@echo off
title MyDefrag Task Schedule Creator
cls
cd /d %~dp0
set myd=%systemdrive%\Program Files\MyDefrag v4.1\Scripts
echo --------------------------------------------------------
echo Batch Script by Mike Challis MikeRepairsComputers.com
echo --------------------------------------------------------
echo.
echo --------------------------------------------------------
echo Creating MyDefrag FastUpdate Task to run Daily at 5:00AM
echo --------------------------------------------------------
if exist "%myd%\FastUpdate.MyD" schtasks.exe /create /Tn "MyDefrag FastUpdate" /tr "\"%myd%\FastUpdate.MyD\"" /ru "SYSTEM" /sc daily /st 05:00:00
if not exist "%myd%\FastUpdate.MyD" echo ERROR "%myd%\FastUpdate.MyD" not found
echo.
echo -----------------------------------------------------------------------
echo Creating MyDefrag SlowOptimize Task to run Monthly on the 1st at 2:00AM
echo -----------------------------------------------------------------------
if exist "%myd%\SlowOptimize.MyD" schtasks.exe /create /Tn "MyDefrag SlowOptimize" /tr "\"%myd%\SlowOptimize.MyD\"" /ru "SYSTEM" /sc monthly /st 02:00:00
if not exist "%myd%\SlowOptimize.MyD" echo ERROR "%myd%\SlowOptimize.MyD" not found
echo.
echo off
Pause