It needs to know the host its connecting to hence it being on the right side IE
$hostname = "server.hostname"
you can do the following where the credentials are got from the user via a pop up box, remember though its the same format as you log into your domain with so domain\username
$cred = Get-Credential
then use...
$swis = Connect-Swis -host $hostname -cred $cred
hope that helps