How to apply displacement to a set of atoms or cell boundaries via scripting?

Hi all,

I need to apply certain displacement to a set of atoms (either isolated or in a box with PBC) via scripting, for pull-out, tensile of buckling simulations, and calculate force, stress strain, energy, etc.
Is there any way to do this in MS?

Thank you.
Farzin