I am not sure you can.
As a workaround you can do two vias, that are coincident. 1-2 and 2-3.
Thank you for your reply.
Unfortunately it will not work for my case because I will have 2 drill files. For 1-2 and for 2-3. And this will confuse my PCB supplier.
The drill file is not a problem.
The only thing you need to clarify with your PCB supplier is if he is able to do coincident vias (many times called stacked vias)
If they can do, then it is their duty to find them and proceede in the right way of manufacturing such vias.
In any case it it very good practice to make one test Gerber/ODB++/ICP2581 file and check if they can handle it. Probably an intelligent format like ODB++/ICP2581 are better than classic Gerber.
Hope this helps.