read-shell-command

read-shell-command is a compiled Lisp function in `simple.el'.

(read-shell-command PROMPT &optional INITIAL-CONTENTS HIST &rest ARGS)

Read a shell command from the minibuffer.
The arguments are the same as the ones of `read-from-minibuffer',
except READ and KEYMAP are missing and HIST defaults
to `shell-command-history'.