The "Code:" blocks are examples of what the action list of your command would look like when you have added the appropriate actions to it.
In this case the second block in my post is not verbatim, as it was partially adapted from the initial post by the topic starter.
The first block consists of a "Set a Text Value" action, which uses tokens to remove any non-numeric characters from the spoken command phrase, and sets the variable to that literal text value (which tokens are always rendered as).
The verbatim version of the second block could look like this:
Execute command, 'Logistics menu' (and wait until it completes)
Press F10 key and hold for 0.01 seconds and release
Press variable key(s) [logisticsMenuSlot] and hold for 0.01 seconds and release
It consists of three actions:
The "Execute Another Command" action does exactly that: it executes another command. In this case one that presumably contains the appropriate sequence of input to open a "Logistics menu"
The next action is a keypress action set to the default "Press And Release Key(s)" option, with the "Variable Keypress (Advanced)" option unchecked, which presses the F10 key
Lastly is another keypress action, also set to the default "Press And Release Key(s)" option, with the "Variable Keypress (Advanced)" option checked, and the name of the text variable that will be set by the first command in the field for that option.
The first two actions are supplementary. The last keypress action would be how you want to modify the action(s) that currently press F5, F3, F4, or F7 in your existing commands to open this "CTLD menu", in order to be able to use the first command to set which of those keys should be pressed.
The keypress action is added just like any other keypress action, by using the "Key Press" button on the "Add a Command"/"Edit a Command" window (though you could instead modify the existing keypress action, as mentioned).
The "Set a Text Value" action can be found in the "Advanced" section of the context menu for the "Other >" button, also on that window.