Using legato cli from bash script

hi!
i am trying to use cm command from bash script and gets errors
line 24: cm: not found
how can i call cm commands from the bash?
thanks

cm is for module linux console only.
you can find out the cm location by “find / - name “cm””
and call the cm tool with full path.