Automating connection to the HearingAid

Hello,
i need help with automating my device which connects to the IOS device over the Hearing Aid profile.

So i need to automate connecting to the device over the hearing aids in the settings menu and play some music from the phone. I don’t need to change anything in the settings menu , just check if my hearing aid showed up, connect to it and forget it.

Is this possible considering the Apple Settings menu app is not signed by the developer?
I considered just using touch and scroll actions, but still didnt manage to click on anything inside other apps then the one im testing.