It’s doable. The variables are stored in the registery under the users profile/Environment. You will need to get Sid of the user so you can find their entries in the registers. Then you can update.
A better approach would be to create application registery entries, and set the permissions on them to the desired account.