Why are you talking about login?

You should run the script on one fo the DCs formt he command line. This script has nothign to do with login script. It's a one-time-only script.

It will set the login script for all users in OU=Test.

Thus set the login script to soemthign and check after running the script whether it has changed.
_________________________
There are two types of vessels, submarines and targets.