Get the version of Veeam Backup and Replication

Not sure if this will be helpful for anyone sharing this script but it will pull the version of Veeam installed on the server.

Import-Module $env:SyncroModule
$corePath = Get-ItemProperty -Path "HKLM:\Software\Veeam\Veeam Backup and Replication\" -Name "CorePath"
$depDLLPath = Join-Path -Path $corePath.CorePath -ChildPath "Packages\VeeamDeploymentDll.dll" -Resolve
$file = Get-Item -Path $depDLLPath
$version = $file.VersionInfo.ProductVersion
write-host $version
Set-Asset-Field -Subdomain "alamo" -Name "Veeam Version" -Value $version