CheckIfAppPoolExists [-name] <String>
Checks for the presence of an application pool matching the name.
if(CheckIfAppPoolExists -name "MyAppPool") { Write-Host "AppPool exists" }