Make /ex command work form console (remember: no player or npc attached!). Add <element.replace[…].with[…]>