$domain = "example.local"
$password = "secret" | ConvertTo-SecureString -asPlainText -Force
$username = "$domain\ad-add"
$credential = New-Object System.Management.Automation.PSCredential($username,$password)
Add-Computer -DomainName $domain -OUPath "OU=New_Computers,OU=Computers,DC=example,DC=local" -Credential $credential -Restart