Raycast extension to save your own commands and run them in Terminal. The My Commands command shows the list (starting with a ping 8.8.8.8 example); press Enter to run one, ⌘N to create a new one with a name and a command (multiline commands are supported), ⌘E to edit it or ⌃X to delete it.
To run a saved command straight from Raycast's root search, open its actions (⌘K) in My Commands and choose Save as Quicklink. The quicklink runs the command in Terminal without showing any Raycast screen. It points to the command by id, so it always runs the latest saved version.