thanks in advance.
you can try something like this:
var totalMatrix = app.getScaleMatrix(-100,100); app.activeDocument.activeLayer.pathItems.transform(totalMatrix);
e.g. for the first path item in the active layer
Pixxxel Schubser's answer should be marked as the correct answer