I am using Task Scheduler to run various things ones in a while.
And, as you know, Task Scheduler askes and keeps passwords with every
task.

Ones in a while Windows reminds me that I have to change my account
password, so I do. After this no task from task scheduler runs because
in task scheduler the passwords are still old. I feel like I am fed up
to change 20 passwords everytime I change my main password.

Is there any way (script or program) which will do this automatically?

Thanks,
Edward