ARK ID for Dinosaur Egg is PrimalItemConsumable_Egg.
To use the command provided by this constructor, make sure that you had previously executed enablecheats YourServerPassword.