In Acrobat DC, you have a Tools view in which you will find a JavaScript tool. Then you can add it to the right pane. The JavaScript tool has long known parameters.
You can also use the tool search function in the right pane (note: in some versions of Acrobat DC, under certain circumstances, this may cause Acrobat to crash, but I think they fixed this error, in the meantime, get the latest version).
source
share