you can get the dimension of pro builder cube but you cant change it from script, as i believe.
you can get it by getting the mesh collider component of the pro builder object then getting it's bound from script enter image description here
the results called extend is exactly half the values written in the pro builder inspector component.