fixes #394 It was partly already fixed but set object type for credential to PSCredential and not just object.
fixes #394
It was partly already fixed but set object type for credential to PSCredential and not just object.

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