The names of all main menu commands
The following will list the names of each command on the main menu bar and each sub-command.
Run it in the Visual Basic editor in PowerPoint.
Press Ctrl+G (Command + G on Mac - yes, the same code works on Mac) to view the results. This opens another window where the output from Debug.Print statements appears. You can select the text there and copy it to an editor or other program.
' Code begins on the line below
Dim X As Integer
Dim Y As Integer
With Application.CommandBars("Menu Bar")
For X = 1 To .Controls.Count
For Y = 1 To .Controls(X).Controls.Count
Debug.Print vbTab & .Controls(X).Controls(Y).Caption
' Code ends on the line above
See How do I use VBA code in PowerPoint? to learn how to use this example code.