Yeah its a typo, not in the actual script.
foreach ($line in $csv)
{
#################################################################################
# Set Variables
#################################################################################
$vmhost_user = "user"
$vmhost_pass = "pass "
$newhost = $line.Host
$host_IP = $line.IP
$san0 = $line.SAN0
$san1 = $line.SAN1
$subnet = $line.Subnet
$gateway = $line.Gateway
$mgmt = $line.ManagementIP
$ntp = $line.NTP
$dns1 = $line.DNS1
$dns2 = $line.DNS2
#################################################################################
# Connect to Hosts
#################################################################################
Write-Host "Connecting to $newhost ESXi Host!" -ForegroundColor Green
Connect-VIServer $newhost -User $vmhost_user -Password $vmhost_pass
#################################################################################
# Get VMKernel PortGroup and Assign IP and Subnet4
#################################################################################
Write-Host "Find the VMKernel PortGroup on Host $newhost and Assign New IP and Subnet to it!" -ForegroundColor Green
$vmkernel0 = Get-VMHostNetworkAdapter $newhost | where { $_.PortGroupName -eq "SAN 0" }
Set-VMHostNetworkAdapter -VirtualNIC $vmkernel0 -IP "$san0" -SubnetMask "$subnet" -confirm:$False
##Dont Test With This One##
#$vmkernel1 = Get-VMHostNetworkAdapter | where { $_.PortGroupName -eq "SAN 1" }
#Set-VMHostNetworkAdapter -VirtualNIC $vmkernel0 -IP "$san0" -SubnetMask "$subnet" -confirm:$False
#################################################################################
# Assign NTP Server Information and Configure NTP Settings
#################################################################################
Write-Host "Configuring NTP and Enabling Auto-Start!" -ForegroundColor Green
Get-VMHost $newhost | Add-VMHostNtpServer -NtpServer $ntp
Get-VmHostService -VMHost $newhost | Where-Object {$_.key -eq "ntpd"} | Start-VMHostService
Get-VmHostService -VMHost $newhost | Where-Object {$_.key -eq "ntpd"} | Set-VMHostService -policy "automatic"
################################################################################
# Disconnect Each Host After Configuration
#################################################################################
Disconnect-VIServer $newhost