Asterisk -rx is not getting executed

I am executing few command using asterisk -rx , none of them are getting executed.

but when I do asterisk -cvvvv, each n every command is working.

Are there any messages?

It seems your missing an option to execute command for connecting to a remote console with
asterisk -rx (asterisk: option requires an argument – ‘x’)

I.E:

asterisk -rx ‘core show version’
Asterisk 17.7.0 built by …… @ localhost.localdomain on a x86_64 running Linux on …….

I resolved this issue by providing path in prefix like
/usr/local/data/sbin asterisk -rx