[Help]Any ways can send uiautomator command(like uidump command) when running appium?

Working on a secondary develop on appium. I wanna to get a real-time uidump.xml file when running appium. So need to send uiautomator dump command meanwhile, but seems not work, it return nothing. Seems some conflict with appium. If there is any ways can do that. Mant thx!