Choose which coordinator to connect to

I have a situation where there could be many coordinators in close proximity, each with it’s own network of routers and end devices. I am making a data logging program that needs to connect to the coordinators one at a time, transfer some data, and disconnect. I have been toying with enhancing the ATAS command but have not made any progress. Does anyone have a suggestion?

Each network should have a unique PAN ID and channel to avoid interference.