Hello,
The functionality you’ve encountered is working as expected. Only simpler AT commands can be directly executed from the command-line interface (CLI). Here is a list of these basic commands: AT Commands List. For executing more complex commands, you’ll need full modem control. Here’s a quick tutorial on how to achieve that: Tutorial Link.
Best regards,
Marijus