fixes #1266 format and add logic to check severity
fixes #1266 format and add logic to check severity

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