Export object properties on workflow step

Hello everyone, 

I need to export some properties of an object to a txt or cvs file on a workflow step.

The exported file must also have a header line to be read correctly by a third-party application. Ie : 

Col1                                 Col2                                  Col3           

Property1value                Property2value                 Property3value

Does anyone have a scipt to do this ?