FYI!
The solution to why my client pc was not able to join the domain after I removed it via the kix script, was because for some reason the following registry key was being set to 1 instead of zero:

HKLM\System\CurrentControlSet\control\LSA ForceGuest

I will start up another post where I will be asking a question on how I can fix this via script up boot up after joining the domain.......