Text this: Power system modelling and scripting