I want to start and stop application pool in IIS using powershell script. I had try to write the script but i didn\'t get this.
These days the IISAdminstration module has mostly superceded WebAdministration. So if you're on Windows 10 / Server 2016, you can use Get-IISAppPool:
(Get-IISAppPool "name").Recycle()