You Could use this to get Office Version, then you dont have to do a Loop... $OfficeVersion = (Get-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Outlook.Application\CurVer).'(Default)'.split('.')[2]
Thanks for the suggestion, I'll look into it