I always mention that a shell is a poor man's REPL, based on REPL based OSes like the ones from Xerox and ETHZ used to offer their OS interaction workflows alongside the development experience.
Shells like Powershell and Fish are the closest to it, due to their integration with programming language and OS APIs.