added specific clears in the areas causing problems
added specific clears in the areas causing problems

dsolodow/dbatools,SirCaptainMitch/dbatools,sqlpadawan/dbatools,Splaxi/dbatools,kozloski/dbatools,wsmelton/dbatools