I am trying to do something similar, but it doesn't seem to work. I think I have correctly escaped the <> characters. But I can't even do this from a CMD prompt.

FOR %i IN (*.exe) DO "%i"...