System Macro - Set and activate through script / command line arguments

We have crated a system macro to override the On_Simulation function. Can I set and active a system macro through a script/command line arguments? If not can we do this in a program? We are trying to automate the whole process of generating Pseudo Language files. 

Tim