So you have a Raspberry Pi on Telem2 which needs to send some data to a ground station that’s attached to Telem1. If you send the data to APM it’s not going to know what to do with it and through it away.
You could build a new Mavlink packet and make the APM send it back out as a Mavlink packet but you would need to modify the APM code to do that.