This script is not properly working on my SP2013 farm. I have an 1 app and 1 WFE. If I run this script on my app server it will do an iisreset twice (on the app server) even if the script output is saying that is as been executed on both server (app and WFE).
Have you checked that Get-SPServer is properly getting both your Web Front End and your App Server?
Dear, I have the same issue, even if message well displays all servers in my farm, iisreset doesn't proceed on others servers if i check while running iisreset /status Rgds