is there a way to make a macro lets say

/assist X
then use interract with target function or commant whatever

?