I have created a powershell script for deploying wsps to the SharePoint Farm. The script also uses psremoting to login remotely to the servers (WFE and Application servers) to recycle the application pools.
This works fine on the dev server but on UAT and PRD the applications pools on both WFE servers stop completely and have to be restarted manually.
Why is this happening? How can I work around it to get 0 downtime.