I was surprised to find that none of the examples in the Programmers Reference actually work. They all fail on my machine! LoadRun(File) stalls on generating the toolpath. The LoadFile(Filename), RunFile() example does not work because it executes way too fast. RunFile() is executed while LoadFile is still working. The IsLoading() example doesn't work because IsLoading() goes false early, before LoadFile() is complete, or at least before Mach is ready for a Cycle Start. Here is an example that will work for sure. I'm running 3.043.022, but that shouldn't matter.
LoadFile("D:\Mach3\GCode\roadrunner.tap")
' Wait for Load to Complete
Do
Sleep 100
Loop While IsLoading() 'Wait until LoadFile reports that it is done.
Sleep(100) 'Extra sleep time to allow LoadFile to actually be complete
' Run the File
RunFile()