Keep variable value between program runs

did you try to use the ClientSendScript Class to solve this?: