Elevated Dialog Menu

I am trying to make a datapack where i can have a player open a dialog menu(how that happens is still TBD). But then they will have a slider to set the waypoint range (0-60000) and a button for Transmitting, and another for Receiving. Then when a value is selected in the range, and one of the buttons is pressed, it will modify the player's coresponding attribute. I have a prototype, but then realized that the dialog menu executes the command at the permission level of the player that has the dialog menu. I am wondering if anyone has any suggestions for getting around this limitation? I have looked into a tick function based work around, but I am running into the issue of not having a way to set the attribute based on a scoreboard or storage value. Any ideas?

Continue to help post