Fixed the conditional check for UNC and remote running
Fixed the conditional check for UNC and remote running

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