Run solidworks macro using dispatch

I have a macro to run in all files in the workflow state. Is it possible to do using Dispatch Function?

Thanks

SolidworksApi macros