Exert Advisor signal to MS Excel

Can anyone explain me how to send the buy sell signals generated in Zerodha Pi expert advisor to MS Excel file? Or to any text document. Thanks

This technique could work for your situation too.

Thanks for the reply.
It seems that this code is for Python.
Can we write any script within Zerodha Pi which can send the EA data to any text document?