How to convert GRD file to CUBE formart

Hi everyone,

I need to convert the electron density in *.grd format to *.cube format. Does anyone have a script to do it?

Thank you