Hey, I need help with a Datapack Crafting Recipe!

I'm trying to see if I can make a custom recipe that when the item is crafted, removes the crafted item and runs this command: give @s echo_shard[custom_name=[{"text":"Court Glass","italic":false,"color":"aqua"}],lore=[[{"text":"A Powerful Relic created by The Judge to summon his Horde.","italic":false,"color":"aqua"}]],rarity=epic,enchantment_glint_override=true,attribute_modifiers=[{type:armor,amount:30,slot:offhand,operation:add_value,id:"1752538665237"},{type:armor_toughness,amount:20,slot:offhand,operation:add_value,id:"1752538665238"},{type:max_health,amount:40,slot:offhand,operation:add_value,id:"1752538665239"}],food={nutrition:0,saturation:0,can_always_eat:1b},consumable={consume_seconds:1000000,animation:spyglass,has_consume_particles:0b},unbreakable={},tooltip_display={hidden_components:[enchantments,unbreakable]},custom_data={"heroic":"court_glass"}]
Continue to help post