Thank you, I will give this a try and see how I get on
One thing I did see when trying to figure this out is the get-credential command for the username and password, it also seems to bring up a more user friendly login interface, can that be used here or is the way you have done it the best way.
It's school kids using this so just want it as simplified for them as possible, haha.
THank you so much for your help so far, life saver.