Question: how to create a script for the rules wizard in outlook 2016?
Answer: Open Rules Wizard. ...  Click New Rule. Select Apply Rule on messages I receive and click Next. Select your conditions and click Next. Select Run a script action (near the bottom). Click on a script. Select your script, click OK. Click Next then finish the rule.