Can someone help me modify this for use with the task scheduler?

Hello,

I have limited programming knowledge, and my knowledge is even further restricted with SolidWorks as I haven't found the macro recorder to help too much.  I found the attached macro by Deepak Gupta for opening/saving parasolid files and modified it for Inventor parts and assemblies.  What I'm unsure of is how to get it to work with Task Scheduler so Task Scheduler can run the macro on specified folders.  Can anyone assist?  I saw topics on a Macro template, but looking over it with my limited knowlege of SolidWorks API, I'm not entirely sure how to apply it to this situation.

Best regards,

Fred

SolidworksApi macros