From <
http://user.fundy.net/morris/photoshop21.shtml>
Insert Menu Item
This command allows you to insert the selected menu item into the current action. Inserted items appear below the active action step. This command is available regardless of whether or not you are in record mode.
Two key uses for this command are: to insert commands that may otherwise be unavailable (or inaccessible) while in record mode (such as showing or hiding palettes); or, to insert a command without values (so as to prompt the user for input when the action is played).
--
While the dialog is open, simply choose the desired command from the menus and it will be inserted into the current action.