Here is a quick example of creating a Status Filter Rule in Configuration Manager with PowerShell

Execute the code

New-Rule

 

New-Rule2

 

Happy Scripting