Oh, I'm really sorry for posting it here then.
About storing the password in plain text, this is just one layer, there is going to be at least another password. But you're right, and it would be awesome to learn how to hide it. I've only been able to find how to hide credentials on PowerShell so
far, and being this script stored on a removable drive, that wouldn't work.
I'll definitely check the links you posted to learn it and I'll keep looking for how to hide the text password instead of storing it in clear text in the script.
Thanks for the help.