Addendum:
since both your actions only require one line of code each, I think you can enter them directly into an icon's command line... no need even to create batch files. If AmiDoc has an option to "execute shell-command" on-click for your dock buttons, just put your commands in there, and it should work much easier than above instructions