Hi,
Is this the controller password you are talking about?
For what purpose are you passing the passwords? Is it only for authentication?
If so, You can always configure the controller passwords at execution>credentials.
You can include a statement at the beginning of your command:
Connect-WfaCluster -Node $Cluster // For C-mode
and
Connect-WfaController -Array $Array // For 7-mode
That will take care of authentication