How to easily pulse 30 v , and then swap polarity and pulse again, in a loop?

sounds like you need a H Bridge driver (module) like this:
link

You will have to find one that fits your current requirements.