Sorry.

I wasn't sure about the syntax.

the script runs but the drives don't map. I've tried altering the end results if the script runs correctly but I get the same problem:

Nothing happens!