/varset v7 $target(name)
:TargetAgain
/target id $v7
/goto :TargetAgain
so this sets v7 equal to a spawn name which for example is "a_shrieker01", the problem is, the /target id $v7 will also target other shriekers even though they are different.
I want to use this command so I can go back to the correct mob when I'm fighting multiples of a mob with the same name. this command does not seem to work for me and ends up just selecting the closest mob of the same name.