I need to stop now. Lost a lot of hashing time on this.
As it is today this build will not mine on Dwarfpool
You have "." instead of "/"
You have typo for $My_Rig
And from what I can see the entire sections for enable and disable are backwards for Dwarfpool.
And something is very wrong concerning the proper switches for Dwarfpool (-F -G works on 8 rigs but not this build)
I suggest modifying this script further to accommodate multiple pools instead of just one.
I'm sure you can work it out or I might try later to change it.
In the meanwhile its back to Windows for me.
Good luck