Param(
    [string]
    $VMName
)

Write-Verbose "Connect to vCenter" -Verbose
Connect-ITDvCenter -Credential $Secret:ndgov_svcitdvmvcro

Write-Verbose "Start Sync" -Verbose
Sync-ITDVMwareVMMetadataToSharePoint -VMName $VMName
#Write-Output $VMName
Write-Verbose "End Sync"

Write-Verbose "Disconnect vCenter"
Disconnect-ITDvCenter