How to create a custom P,N,E,Z,D w/ Attributes CSV exporter in TBC

How to create a custom P,N,E,Z,D w/ Attributes CSV exporter in TBC