We have a 3rd party tool that marks susspected spam as *junk* I am trying to create a new transport rule that puts everything with *junk* in the subject into the junk folder.
I have created the following script but its not working.
Please see the attachment for the error I am receiving.
$condition = Get-TransportRulePredicate
$condition.Words = ,"*junk*"
$action = Get-TransportRuleAction SetScl
$action.SclValue = 9
New-TransportRule -Name "Set SCL from *junk*" -Conditions @($condition) -Action @($action) -Enabled: $true