fixed a premature function export
fixed a premature function export

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