I built a library that handles all 3125 valid commands in SW (2015), I hope its useful to you.
After creating your instance, you gonna find a string array that contains all commands, a function to run a command by name (RunThis) and a function for each command in case you want to call it by yourself.
In the initializer please pass the SldWorks.SldWorks app you have created and viewed through your app.
Feel free to try and let me know if there was any probs.
Regards,
Karim
SolidworksApi macros