This should work: ``` PS C:\Users\Hal> Connect-Splunk localhost -Credential $cred Connect-Splunk : A positional parameter cannot be found that accepts argument 'localhost'. At line:1 char:1 + Connect-Splunk localhost -Credential $cred + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Connect-Splunk], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Connect-Splunk ```
This should work: