Hey, sorry for the late reply, but I made a plugin just for this kind of thing!
First, install this plugin: http://sumrndm.site/plugin-command-evals/
Then, within a plugin command, replace one of the parameters with ${ eval-here }
Replace "eval-here" with a JavaScript eval.
For example, for...