You can save Automator workflows as an application (and then run it from the command line?) or use the automator command to run workflows from the command line.
Unfortunately, I think I just ran into a bug where 'in the last x days' does not include today. So you'd have to include that additionally if you want to include today.