Thank you Lonkero, I hadn't seen that before now and I may use it.

However, it seems I didn't give enough detail. The password will not be saved within the script. I will be typing it each time I run the script and saving my input as a variable, using the variable where the password would need to go.

So the concern is, as the script runs a loop with the password inputted via variable, do those commands within the loop get saved anywhere? As near as I can tell that's the only time the plain text password would be revealed.