Run AI in subprocess