The batch file I have for one client is this:

powershell Rename-Computer -NewName "COMPUTER_NAME" -DomainCredential DOMAIN\ADMINUser -Restart

Where COMPUTER_NAME to not exceed the 15 character limit

ETA:
I should add that this batch script start with installing Chocolatey package management tools, then the default applications,