You can pass a sequence of commands into the dspace command-line tool using the read command.
dspace
read
[dspace]/bin/dspace read a-command-file
some-other-command | [dspace]/bin/dspace read -
some-other-command | [dspace]/bin/dspace read