Fix pipe input fails if SqlCredential is needed.  Should connect via object instead of name.
Fix pipe input fails if SqlCredential is needed.  Should connect via object instead of name.

alevyinroc/dbatools