Did you try like Jochen said, suppressing the return obj in this line here. Think this would indeed cause some trouble:

$nul = $objConnection.Open ("Provider=ADsDSOObject;")