From Help, go to Contents tab, Reference Information, Tool Parameter Macros
That will give you every available Macro you can pass to a tool.
If you need to do something more involved, then it sounds as though you need to write a script. I tend to work with .CMD files, pass in parameters, and send that to an AutoIt script where I can do whatever. However, you should be able to do it with JavaScript, VBScript, PowerShell, or any other scripting language you're familiar with.