async function tryCommand(command) {
  try {
    const result = await executeCommand(command, null, 2000);
    
    // Check if the result indicates the command was blocked
    if (result.isError && result.content && result.content[0] && 
        result.content[0].text && result.content[0].text.includes('Command not allowed')) {
      return {
        blocked: true,
        error: result.content[0].text
      };
    }
    
    // Command was executed successfully
    return {
      blocked: false,
      output: result.content && result.content[0] ? result.content[0].text : '',
      pid: result.content && result.content[0] && result.content[0].text ? 
           parseInt(result.content[0].text.match(/PID (\d+)/)?.[1] || '-1') : -1
    };
  } catch (error) {
    // Check if the error message indicates blocking
    if (error.message && (
        error.message.includes('Command not allowed') || 
        error.message.includes('blocked by configuration'))) {
      return {
        blocked: true,
        error: error.message
      };
    }
    // Otherwise it's another type of error
    throw error;
  }
}
Execute a command and return true if it executed successfully, false if blocked