To stop an App Pool using PowerShell use
Stop-WebAppPool -Name YourAppPoolNameHere
And to start the App Pool
Start-WebAppPool -Name YourAppPoolNameHere
You will need the WebAdministration
module installed so check you have it with this command
Get-Module -ListAvailable