https://purple.telstra.com.au/blog/using-saved-credentials-securely-in-powershell-scripts You can store that string into a text file, and when needed, read it back in and reverse it back into a ‘Secure String’ object and feed into a credential object creation by doing the following: ...
I tired this with the memory card that came with my Telstra branded HTC desire (was a Samsung 2gb) and it failed to create a gold card, everything worked great until I plugged it back in and kep asking me to reformat. I am going to buy another couple of 2gb cards and try again, ...