I used below script to run using powershell script but getting an error.
Script - Import-Module WebAdministration; Start-Sleep -s 10; Stop-WebAppPool -Name “DefaultAppPool”
Error - Import-Module : Process should have elevated status to access IIS configuration data.