Drain soul + delete shard

trying to get this to work but it doesn’t, any help? I wanted it to cast Drain Soul Rank 1 and ensure that the Soul Shard bag does not overflow

#showtooltip Drain Soul(Rank 1)
/cast Drain Soul(Rank 1)
/run C_Container.PickupContainerItem(4,C_Container.GetContainerNumSlots(4)) DeleteCursorItem()

See the notes under This function is [restricted].

https://warcraft.wiki.gg/wiki/API_DeleteCursorItem

/run is just another name for /script