This is certainly possible. I have absolutely no experience with Photogenics, but the ARexx parsing should be simple enough.
Email me here and I'll happily show you how to parse a directory full of filenames. Adding the effect(s) and closing each file again should be easy enough, if Photogenics' ARexx port is capable.