This might be helpful: each time you perform an action in Code/Create, etc, for example moving a mesh in the viewport, you can get the corresponding code that was used in the Commands window, which is docked at the bottom right area.
In that window, just select the newly created command and click “Generate script to clipboard from: Selected commands” button. You’ll then get in the clipboard commands similar to the “CreateReferenceCommand” above.
For example, after manually moving a cube in the viewport you’d get this command listed:
omni.kit.commands.execute('TransformPrimSRT',
path=Sdf.Path('/World/Cube'),
new_translation=Gf.Vec3d(181.432373046875, 98.69508361816406, 79.56932347634911),
new_rotation_euler=Gf.Vec3d(0.0, 0.0, 0.0),
new_rotation_order=Gf.Vec3i(0, 1, 2),
new_scale=Gf.Vec3d(1.0, 1.0, 1.0),
old_translation=Gf.Vec3d(181.432373046875, 98.69508361816406, -9.894403457641602),
old_rotation_euler=Gf.Vec3d(0.0, 0.0, 0.0),
old_rotation_order=Gf.Vec3i(0, 1, 2),
old_scale=Gf.Vec3d(1.0, 1.0, 1.0))
To move a mesh to a spot position, most of these parameters are unneeded, you just need “new_translation=”.
Also, at the top of the Commands window you can click “Search commands” to look for the possible parameters for each command.