Yes - I'd do it like this:
1) figure out the command line version of what you're trying to do. This one's easy: DEFRAG X:
(where X: is the drive in question)
2) Open Control Panel, Scheduled Tasks, Add Scheduled Task. Follow the "wizard" instructions to enter the task, the time(s). etc.