Scripts name and export instantiated artboards

Would be handy to name and export an artboard instance created in script so that it can be accessed via the flutter and other APIs.

I am trying to do this as I have some code that gets the details of a node to generate bounds in a physics engine. However, I can not do this when the artboard instance is created by a script.

However, I am only creating it this way as a script is unable to access editor created nodes in the same parent artboard.