Hi, Thanks it is working now. I have addded error handling to the script, can you advise me how to deal with cases were objitem.command does not exist, at the moment I get a permission denied error, which is a bit confusing because I get the same error if my user account cannnot acccess a...