Calling a behavior script method from a different python script

Hi, I’m working on a project where there is an UAV capable of flying by itself. The drone prim has ha python behavior script inside in charge of controlling the flight. I need to call a method from this behavior script from another python script. Is it possible?

NVIDIA_FORUM_PICTURE

I need to press ‘CHANGE DIRECTION’ button and then execute the function.
This button is built outside the behavior script, in a different omniverse extension, that is, I have two python scripts. the behavior one and the extension one which builds this button that is supposed to call the comented function.