I will have to wait on rebooting until the end of the day. Hopefully that will fix the inconsistency of the script. Thanks for the tip, LLigetfa .

Kix is located on the DC. The 9x system have copied it to the local system and run it from there. I deleted the kix files from the local system and ran the script. It fix the illegal operation! Thanks Howard Bullock!