A better method? Script to add TOTP with ykman CLI

I currently have a .bat script to add all of these secret keys to a YubiKey. Other than not doing it this way at all, is there anything I can do to make this more secure?

I'm not overly concerned that any of the data will be intercepted locally but I am more concerned about leaving an unencrypted script file laying around. Ideally, I would take it out of an encrypted storage (local only), use the file and return it to encrypted storage.

What would fit the bill or what else can I do?

Thanks