Can red command run once not every time if the permanent variable is already set?
"_Initialize"
$a = input("User Name","", "test");Perm $user="$a";
"ShareWith $user|:browsenetwork" ::msg "Share <curfolder>? permission:Read" , 1;run "nircmd elevate net share <curfolder>=<curpath> /GRANT:%username%,FULL /GRANT:$user,Read pause"