I found this on the script called with right click on outliner -> reference -> duplicate, and found the original script.
I select a referenced item in my scene.
Then, I do:
string $test = duplicateReference 0 " "
;
It doesn't return the new reference. How do I get the new item created on the outliner from this command?
It doesn't have any reference on Python or MEL, if you look for it.