Shell
The program inside a terminal window that reads your commands and runs them.
Think of it as The clerk behind the counter; the window is just the counter.
PowerShell and Command Prompt are Windows shells; zsh is the macOS default; Bash is common on Linux and in Git Bash. The shell, not the window, decides which commands exist.
Where the picture breaks
A real clerk asks 'are you sure?' and keeps returns, but the terminal does exactly what you typed: deletions skip the Recycle Bin and there is no undo.
A shell reads a line, finds the program by name in PATH, runs it with the arguments in the current directory, and reports its exit status. It never asks for confirmation unless the program does.
See it with the rest of the analogy cast