Hi topside,
you can control programs when they provide ActiveX-(or other) interfaces.
Other option would be to start the program by "System exec" function and
simulate mouse-clicks (or key input), search for "simulate mouse click" here in the
forum.
For disk defragmentation you may setup a scheduled task in Windows, independently from LabView
Best regards,
GerdW
using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019