How to use Matlab code to run Dynamic analysis in STaad Pro COnnect edition

Hi,

I am doing analysis of a steel bridge with dynamic loading.

I need to generate lot of data (close to 1L cases) and hence I thought we can write a code and run that code so that staad and run and analysis it.

Is it possible to do like that? i am planning to use Matlab for coding.

If so, can you please help me with the code and how to start it.