Welcome to the board.
Not sure why you have a SELECT CASE construct and then also nest an IF ELSE construct. They seem quite redundant.
Why bother with an ELSE if nothing follows?
Also, why use /Persistent switch if this script runs on every logon?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.