Workarounds for permissions click_event in tellraw text

Hello, when I try to run a command by clicking formatted text (as via tellraw with click event) a dialog that talks about elevated permissions pops up. This is terrible and I need help to prevent this dialog from appearing and the command to run anyway. I think this started in Minecraft 1.21.6 and continues in 1.21.8 so far. I have read in another thread that a workaround is using the trigger command in the click_event, which does not pop up the dialog, altering a score, and having a tick function that checks for changes in the score to then run the function I wanted to run in the first place.

I have a specific problem with this tick function method. How do I link the player that clicks the text to the command that then runs? I can't execute as @s because this is lost in the tick function

Is this the best workaround, or is there another one better that does not need a tick function?

Continue to help post