Whenever you find a commands section, for example when adding commands to an item or commands when a panel opens, you can use the following features to do so.
Find the sub pages to learn more about the features that can be used. An example of a commands section is illustrated in the script below.