fixed after @PowerDBAKlaas  review
fixed after @PowerDBAKlaas  review

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