Help Needed: Integrating PX4 Scripts with AirSim and Using the PX4 Navigator Module for Navigation

I’m currently working on running PX4 scripts within AirSim, and I’ve been following the tutorial provided in this link: PX4 in SITL - AirSim. While the tutorial covers the basic built-in commander commands like commander takeoff, It doesn’t tell me how to create and run my own px4 scripts. I found a PX4 navigator module within the px4 source code, which you can find here: https://github.com/PX4/PX4-Autopilot/tree/main/src/modules/navigator. My goal is to leverage this module to create a navigation PX4 script and execute it within AirSim.

If anyone has any experience or insights on how to do something like this, I would greatly appreciate your guidance and expertise. Thank you!