Adjusting how $server is built
Adjusting how $server is built

Fixes #2012 along with all other commands to prevent them from trying to connect to localhost or provided SQL Server instance when a credential is provided.
alevyinroc/dbatools