ARK ID for Scope Attachment is PrimalItemWeaponAttachment_Scope.
To use the command provided by this constructor, make sure that you had previously executed enablecheats YourServerPassword.