I'm wondering if there's a way to move a specific ObjectReference into a container, and I can't seem to find one... AddItem()/RemoveItem() only seem to deal with base Forms and this is an object that has been dynamically created and renamed using reference aliases. I tried e.g. myObject.Activate(myContainer) but no luck.
Alternatively, is there a way to fill a reference by creating an object inside a container using Papyrus at runtime, similar to the creation kit method of creating an object inside a container to fill a reference at quest start time? Currently to get a valid object reference I'm using PlaceAtMe() to dump the object into the world, I'd like to either move it immediately into a container after renaming or spawn it inside a container and still have a valid reference for renaming.