You want to know if you can run a shell script on the ProxySG, Advanced Secure Gateway (ASG), and Integrated Secure Gateway (ISG), like you can do on a Unix/Linux-based platform.
You cannot run shell scripts on ProxySG, ASG, nor ISG platforms. They run specific purpose OSes that do not support any shell commands nor shell scripts.