First, nothing about a shell being able to make syscalls directly implies it couldn’t also call executables. I never suggested I think a shell should *only* be able to make syscalls. Moreover, in Multics, its shell can directly call functions in its equivalent of shared objects. But in your scenario, in a sane shell you could
1. Implement it in the shell itself (as you would with Python or Lua or whatever)
2. Write a program and call it from the shell