For openers, /etc/rc.local is directory.
Define your shell scripts appropriately and save them there.
They get executed in the order presented in the directory.

You have here a melange of things (in post #5)
that would surprise me if it did anything useful as it stands.
Perhaps 'try it and find out' is a bit premature.

In regards to I/O re-direction, of any sort, I can't help you.

I think you will get more help from some quarter if you
define in words, more than a short sentence just what you hope to achieve.