Expose TaskManager::executeCommand for testing purposes