It is not permissible to type CLI script commands directly at the command line. However, the UNIX shell allows you to type script commands directly at the command line. In general, the shell's script language is more powerful and general than the CLI's. This unfortunate experience is possible because AmigaOS does not prevent one user from affecting another user's files. On the other hand, UNIX was built to be a multi-user environment.
Every file has an owner, and only the owner can modify it.
Of course, the owner can choose to share files with other users on the machine. The Superuser may access every file on the machine without restriction. Important system files are typically owned by the Superuser, so they cannot accidentally be deleted by casual users. UNIX guards against this error. As you might imagine, the Superuser's password is almost always a closely-guarded secret.