added example, made errors more specific & command more resilient to failures
added example, made errors more specific & command more resilient to failures

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