You could run your scheduled tasks under a kind of service account.
One where the password doesn't change, and that is restricted to "logon as a batch job".
Ultimately, the best solution, security wise, is to use a Credential Store.
Like for example KeePass with the PoShKeePass module.
There are other Credential Store solutions with PowerShell support out there.