Novel electrically driven direct-writing methods with managed control on in-situ shape and encapsulation polymer forming