Thanks for the advice and yes I agree, my local script works as well and I noticed that if I separate the command strings they run independently just as you suggested. The solution will be for me to join the commands into a complete set and then figure out a way to group the results. Thank you again for the suggestions and advice.