Launch mission planner with config file via a script

I’ve been looking into a way to launch mission planner via some script and a pre-defined config file, so far no luck.

Is it possible to do this via a (python?) script:
launch MP to connect to vehicle via serial, run the ‘GPS inject’ feature to connect via TCP to base station, then run ‘Mavlink’ feature to mirror the mavlink stream to an already running APM planner 2?

Im running MP 1.3.58 on ubuntu 18.04 using mono.

Any suggestions @Michael_Oborne @billb @OlivierB ?