Using the tsocmd command

You can also use the tsocmd shell command to run a TSO/E command from the shell or in a shell script.

Unlike the tso shell command, the tsocmd shell command can be used to issue authorized TSO commands. For more information about the tsocmd shell command and the environment variables associated with it, see z/OS UNIX System Services Command Reference.