Passing password as clear text is a bad practice (as the exceptions for PSScriptAnalyzer point out).
I would recommend changing to a [PSCredential] object, which is more "powershelly" and you can still fetch the user and password out of the object
This is a breaking change, as it will change the signature of the function
Passing password as clear text is a bad practice (as the exceptions for PSScriptAnalyzer point out). I would recommend changing to a
[PSCredential]
object, which is more "powershelly" and you can still fetch the user and password out of the objectThis is a breaking change, as it will change the signature of the function