$credential = New-Object pscredential $Username, (ConvertTo-SecureString -String $Password -AsPlainText -Force) $Ports = @{ WebClientPort = 8080 ...