When I run this below piece of code using task scheduler.I get an output where the last server mentioned repeats random number of times.(sometimes it repeats twice or thrice or 5 times or appears normally,once as it is supposed to.
When I schedule it
When I schedule it