I am looking for the best way to check if a Com Object exists.
Here is the code that I have; I\'d like to improve the last line:
$ie = New-Object -Co
I would stick with the $null check since any value other than '' (empty string), 0, $false and $null will pass the check: if ($ie) {...}.
$null
''
0
$false
if ($ie) {...}