It is something wrong with the msg line - I commented it out and the script is running, at least on local computer. Going to test on Citrix login.