I was able to successfully run the script with versions:
Bash: GNU bash, version 4.4.19(1)-release
Wget: GNU Wget 1.19.4
Curl: curl 7.58.0 Working on it when I can
Please let me know if this script helped you!
I'd apppreciate improvements for those on windows and using other tools if you can.