Running no addons but still getting this error message

alright So i have tried to recreate some macro’s I used to use for autoshot and for hunters mark BUT for some reason i keep getting the “Macro script has been Blocked from an action only available to the blizzard UI” error message, now heres the thing I dont run ANY addon’s as of yet, hwo can i trouble shoot this issue.

Auto Shot Macro:

/script if GetUnitName(“target”)==nil then TargetNearestEnemy() end
/run if CheckInteractDistance(“target”, 3) and (not PlayerFrame.inCombat) then AttackTarget() elseif not IsAutoRepeatAction(3) then CastSpellByName(“Auto Shot”) end

Cast Hunter’s Mark + Pet Attack:

/cast Hunter’s Mark
/script if GetUnitName(“target”)==nil then TargetNearestEnemy() end
/script CastPetAction(2);
/script CastPetAction(10);
/script PetAttack(target)
/cast Charge
/cast Dash

Most would call that a bot.
Understand that the word , " script " and the automation of , “if”.

Good luck.

#showtooltip
/cast [nomod] huntermark

#showtooltip
/cast attack

Auto Shot

#showtooltip
/startattack
/cast !Auto Shot

Hunters + Pet Attack

#showtooltip
/cast Hunter’s Mark
/startattack
/petattack
/cast Charge
/cast Dash

ill give those a shot thanks a ton gents