It would be good to have comments explaining what the different argument values refer to, or even better, can you use short descriptive strings as the input argument to the script, such as "CreateShortcut" instead of "0", etc?