Macros like that stopped working over a year ago. You cannot use CastSpellByName so you cannot initiate spellcasting actions inside of /scripts

You cannot make a macro to start healing when below a certain health threshold