confluence page using API

I write from a script to a confluence page using API.
I am trying to control the width of a column on a table in the page, and to set width for a text paragraph.

Basically the script is too long and uncomfortable to read.

Can you please tell how to do it?

I will try to rephrase the above for a follow-up question,

Is it possible to set the width / length of rows on a Confluence page when I write from a script?

In the current state, I edit the page after the lines are written. I would like (in advance) that the lines of the report will be more conveniently written to read.
For example, create a template and the lines will be written into a cell with predefined dimensions.

Any help will be appreciated!