My experience is that using "\\mydomain.com\netlogon" is really flaky as clients frequently cannot access the share for no good reason. Using "\\mydomain.com\sysvol\mydomain.com\scripts" is very much more reliable.

BTW, this is not script language specific - VBS login scripts are just as problematical.