How do i use function macros with scores directly

I found that this is a thing but I can't find how exactly this works anywhere

function tp:general/set_name with entity @s Score

Continue to help post