Hi.
I found that the scripts were not running even the network up or not.
I decided to use another Pc to continue testing.
I think with the testing some registry errors crept in.
Now the Script is run from the Task scheduled to run at startup.
I also changed the policy to wait
"Computer Configuration\Administrative Templates\System\Logon\ Always wait for the network at computer startup and logon"

Now we can run the scripts at Logon or Startup

Seems it was problem with the machines I was testing on.

Thanks for your help.
I will plod on and get the rest of the scripts going. if I need further help I will search here, and post if needed..