Which command makes that only one person gets a potion effect when he presses a button and nobody else
There's no direct command for this. However, you can use execute if to determine everything else based on the orientation of the person (very complicated) or their distance from the command block.
You could do it with this command
/ exeut as @p if entity @s [name = PLAYER NAME] run effect give @s EFFECT