I had an issue a while back in ESXi5.0 where I had to fix all the NIC mappings for a ton of VMs, many with multiple NICs. I used the following to do that so you can hopefully use it as a base.
foreach ($arg in $args)
{
Write-Host "Fixing: $arg";
$VMList = Get-VM -Name $arg
$AdapterList =...