looking for help / ideas

I have been trying but just can’t see how to set this up. If a macro maker out there is bored (lol i know no one has time lately) and is looking for a challenge. I am trying to make a macro for this demo rotation. Modiflying a macro is one thing, crating for scratch is a whole different ball game, i am not winning at the moment.

Demo Talents:
1 - 2 - 1 -2 - 3 - 2 - 3
Recommended Legendaries for this build:
Recurrent Ritual and Wilfred’s Sigil of Superior Summoning

Rotation: Opener
Prepot - DE - ISB - CD - SD - GrimFel - DE - ISB - DE - ISB - HoG
If soul shard refund >3 cast HoG again
-DE - TC - ISB
Rotation: General
DE - ISB for filler
CD on cool down, HoG at 3-4 soul shards
TC at 8-14 demons but do not delay more than 5-7 seconds off cool down
Big Demons on CD folowed by DE- ISB
Combo demons when Soul Shards allow

Abreviations:
DE - Demonic Empowerment
ISB - Instant Shadow Bolt
CD - Call Dread Stalkers
SD - Summon Doomgaurd
GrimFel - Grimoire Summon Felgaurd
HoG - Hand of Gul’Dan
TC - Thal’kiel’s Consumption