Thanks for that Paul.
I did try it as a package but that didn't work either.
Tried turning UAC off too but again this did not work.
I think with PS it gets awkward with all the restrictions around running the script elevated.
Even logged on as a Domain Admin I still need to elevate the PS console to run the script withotu errors.
The joys of PoweShell I guess.