Here is the API command:
stc::perform SaveResults -CollectResult TRUE -ResultFileName {C:/results.db} -LoopMode OVERWRITE -SaveDetailedResults TRUE