Execute macro from other GUI

Hello,

I am developing a GUI by c#. I would like to build a function that automatically open the paraview, load the file, and execute the macro.
I can accomplish the first two steps but have difficulty finding the solution for the third step.
I guess there’s a specific command for paraview to execute the macro because I can not run the macro by executing it directly or dragging it in to the paraview.

Any suggests are welcome and appreciated.