MATLAB: Automated block-insertion for Simulink models via console or api

apiautomatedblock insertionmanupulationmodelsimulink

Hi,
is there any possibility to insert a block into a simulink model without opening matlab and using the simulink gui? I have different models and I want to insert my s-function-block into the model and place it 'between' two existing blocks, i.e. I want to insert it into the dataflow between these two blocks. The s-function-block is supposed to feed the data right through during simulation and to send a 'ping', when the generated code is executed on my hardware. Is this there any kind of interface to simulink to manipulate models so that I can automate the block insertion?
Thank you! Cheers, Jens