Max meta data and assetmanager

Hi,

Using the max metadata stream I’m able to collect and change asset metadata for a given max file through script without opening the given max file.

I was wondering if there is also a way to add and remove assets (xref scenes) using this stream method?
The only thing I can find is using the assetManager.ReleaseReference => But this only works when opening the max file. Not through script and without opening.

Any ideas…
Bert