I have no idea how to write scripts and having to do that in any program is pretty bad design imo. JK /MyDefrag is way too slow for me, PerfectDisk should be renamed ImperfectDisk, and the optimization routines in SmartDefrag scatter my files all across my disk with huge gaps in between. I'll stick with the combination of Auslogics and the built in Windows tool.
I sujest you try ultimatedefrag, it depends all on how YOU would like your harddrive

eXPerience