In the Settings/Alias Editor dialog, you can give the command you want and use it as a command in the command line.

Location of the Settings/Alias Editor dialog in the ribbon menu:

The command of sl given for slabs and its usage on the command line: