I have a powershell workflow script as below:
workflow mytest{
param($param1,$param2,$param3)
//code
}
mytest $param1,$param2,$param3
Issue here is all the three params were received as array in $param1.
I have a powershell workflow script as below:
workflow mytest{
param($param1,$param2,$param3)
//code
}
mytest $param1,$param2,$param3
Issue here is all the three params were received as array in $param1.
Type your params
Workflow Test-Runbook
{
Param
(
[Parameter(Mandatory=<$True | $False>]
[Type]$<ParameterName>,
[Parameter(Mandatory=<$True | $False>]
[Type]$<ParameterName>
)
<Commands>
}
https://learn.microsoft.com/fr-fr/system-center/sma/overview-powershell-workflows?view=sc-sma-2019