Appcmd Path: APPCMD=/c/windows/system32/inetsrv/appcmd.exe Stop an apppool: $APPCMD stop apppool /apppool.name:<your-apppool>