Create JoinToDomain

This script could join a target machine into the domain and prevent from rebooting in order to take effect.
Group policy update by the script could achieve the purpose and no full functional guaranteed.