Chargng Capacitors in series
You could use a Marx generator. This is a circuit that charges capacitors in parallel and then connects them in series to get a high voltage. In practice, you need to worry about the leakage current through the capacitors as that will limit how long they can store charge effectively. It may be leakage current that caused you to only get 270V in your experiment.