Add management command for exporting pi xml