Automation shell scripts for Canton commands

Hi,
How do i automate the canton commands to run from the Shell script file? I mean once i start the canton using automated shell script, how would the canton command will be executed using shell script?
Thanks
Rocky