Access list of user generated flight plans and their waypoints

Is there a JS way to get a list of available user generated flight plans and access their waypoint data?

I’m trying to come up with a system for an AI tanker where the user can generate their own flightplans using the built in MSFS planner and then load them for the AI to follow.