Is there a way to generate the aggregated schema.json for two or more GraphQL services?

I have several GraphQL services under a federation.
I start one service and download the schema.json for particular service:

apollo schema:download --endpoint=http://localhost:9001/graphql schema.json

I’ve followed this to download schema.json → Downloading a schema - Apollo GraphQL Docs

Is there a way to generate the aggregated schema.json for two or more GraphQL services?

Something like :

apollo schema:download --endpoint1=http://localhost:9001/graphql --endpoint2=http://localhost:9002/graphql ... schema.json

Asked same in stackoverflow as well:
https://stackoverflow.com/questions/68948517/is-there-a-way-to-generate-the-aggregated-schema-json-for-two-or-more-graphql-se