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
You can also do
if ($ie) { # Do Something if $ie is not null }