How to dump variable set into text file

I would like to put all ps scripts and variable sets into version control. I did ps scripts, but with variables set I couldn’t figure it out.
Is it possible to dump variable set into text file?
Inna Ginzburg

Hi Iginzburg,
While we currently don’t support explicitly exporting just variables, you can use the import/export ability provided by our new migration feature to get all your variables and scripts exported out to disk in JSON which you can then do with as you will.
While we don’t actively promote this as being a use case for the migration feature, there is no reason you can’t put it into source control.
I hope this tip helps.
Cheers,
Robert