Running a Cosmos Study from MicroSoft Excel

I am trying to run a cosmos simulation of a solidworks part from excel.  Does anyone know how to write code to change parameters and add loads in the simulation?  Thank you.

SolidworksApi macros