Scripting in processs documents

New to the community and documentation/design.

I am reviewing old process guides used by our call centre and wondering if anyone has any experience in documenting procedures with scripting incorporated? Have tried trawling the net but not even sure where to start for samples or best practice.

Any input/suggestions greatly appreciated :):smile: