GNU Bash and GNU sed are in Trisquel by default. The version of AWK that
comes by default should be OK. Unless the AWK program in the script uses GNU
extensions. If so, the script would return an error that starts with "awk:",
you would have to install 'gawk' (in Trisquel's repository) and choose it as
the default AWK with 'update-alternatives' (or substitute every occurrence of
"awk" by "gawk" in the script). Wodim should be installed by default in
Trisquel (maybe not in Trisquel Mini). 'mkisofs' is not in Trisquel's
repository but 'xorriso' (in Trisquel' repository) is supposed to emulate
'mkisofs'. Maybe you only need to substitute every occurrence of "mkisofs" by
"xorriso". But I am not sure: xorriso's documentation should be read.
You can put the script wherever you want and call it with its (absolute or
relative) path. Since it needs administrative privileges, 'sudo' must precede
the command. For instance, opening a terminal in the folder where the script
(I assume the script is named "gencryptodvd") you should write:
$ sudo ./gencryptodvd [options]
[options] should be replaced by the actual options you want to use.
If you want to run the script by simply writing 'sudo gencryptodvd
[options]', then it must be put in one of the directories in the PATH
variable ('echo $PATH' to display these directories). I suggest you to put it
in /usr/local/bin, which is empty by default and precisely serves the purpose
of installing your own programs (i.e., programs not installed with the
package manager).
Whatever your choice (call by path or script in a directory in the PATH
variable), the script must be executable. You can make it executable from the
file manager (right click on the script, "Properties" and, in the
"Permissions" tab, check the box that allow the execution) or from the
terminal (I assume here the terminal was opened in the directory where the
script is, or that you 'cd'ed to this directory):
$ chmod +x gencryptodvd