Select the message you would like to create the filter for.
Select Tools -> Create Filter ->
Filter on From (or
Filter on Subject). You'll then get this window...
The
From or
Subject information will already be filled out for you (depending on which filter option you chose above). You can then add another Filter Criteria if you like. Change Filter Action to
Execute Command, and select the command/program/application to execute.