Use existing Mission Planner connection for Data Transfer

I have a Python script that I am currently running to take a parameter value from the pixhawk and change the value based on status on my server. For example, if I have connected my drone telemetry using the COM5 port then to run the Python script I need to establish another connection using a USB cable or another telemetry, and when connecting through COM5 it shows that the port is busy. Is there any way by which I can integrate my script in the mission planner so that every time the mission planner starts it uses the connection setup by the mission planner i.e., use the COM5 port itself to check and change the value of the parameter?

It is possible IIRC MP has a forwarding feature. Mavproxy definitely has it and there is Mavrouter.