Sorry, I can barely write a script in Windows never mind Linux.
So now is the time to figure it out – there's noting so motivating as a task to achieve. Linux command line scripting is hardly any different from writing a WIndows .bat file, the main differences are that it doesn't need a .bat on the end of the file name, needs to be given "executable" status in the file attributes, and requires a line at the top telling the operating system how to execute it. All those details are giving in the info I linked to, and anything else you might need to know is easily googled.
My software skills are barely more than yours, but I managed some simple scripting so I'm sure you can too.
The task will be much easier if you have your NAS mounted as a virtual USB drive on the HDR-FOX. If you haven't done this already, check out the
network-shares-automount package. Alternatively, do you realise the HDR-FOX
is a NAS? Just install the
samba package, and your (decrypted) recordings are directly accessible to Windows devices across the network.
I also just to be even more awkward only want to copy the ts files.
That's not a problem (cp *.ts), but it sounds like you want somebody to do it for you. I expect somebody around here is probably doing something similar already, you'll just have to wait for them to come along...