There are existing analyses for adobe flash config on BigFix.me
There should be a fixlet that does what you want as well, but as @strawgate mentions there is one already in the console provided by IBM, though I have been meaning to update and improve it.
Also, if you can do it in a BAT file, you can just take the lines of the BAT file and make them individual action script lines.