You need to use the required -Location parameter to specify the location where the host will be added to your vCenter Server inventory. For example:
Add-VMHost -Name <ESXI IP> -User root -Password <passwd> -Location (Get-Datacenter -Name <Datacenter>)