Need a command block to recognise a specific person

I run a function as a specific person. In this function, I fill a place with command blocks that have a specific command. An example command could be fill ~ ~ ~ ~ ~ ~ command_block{auto:1b,Command:"execute as @s run say hi"}. Unfortunately, a command block changes the executor to itself, so it wouldn't be that specific person. I cannot hardcode in these command blocks the specific person. Maybe there is a way with macros to do this, and I would highly appreciate any help.

Continue to help post