When passing a string as an argument to this parameter:

```
[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[Security.SecureString]$password=$(Throw "Password required.")

```

I get this error when using the `-password` parameter. 

> 
> cannot convert type System.String to type System.Security.SecureString 
> 
> 
> 

If I don't pass the `-password` parameter, a prompt is shown and it accepts the input.