GetAppPoolState [-name] <String>
Returns the current state of the app pool
$state = GetAppPoolState -name "MyAppPool"