How do I assign trustee rights from within a script?

I'm doing a file migration from NetWare to my OES 2018.3 server. I have all the files but no trustee rights. This is not unexpected, but that's another lengthy story.

rights -f /media/nss/DATA/VOL1/Office -r RWCEMF trustee temp2.OU

I'm using the rights command to assign the trustee rights. When I run the command in a PuTTY session, it works; when I try to use a script, it doesn't.

I know next to nothing about creating linux scripts, although what I'm trying to do shouldn't be difficult. 

The first issue is that the result shows "No such file or directory". Unamused

__________
Kevin Boyle, 
Knowledge Partner

Calgary, Alberta, Canada