Ok, so it takes me a bit of time to get it right.

If you can provide me with some information on how to log off the user and run the script in silence that will be great help.

Thanks