How to execute a process only for one object at a time

Hi,

version 9.1.1.

I have a process that runs on update of table ADSAccount, this process is a powershell component that executes a script for the user. My issue is that i only want this process to run fro one object at a time, because if it runs for more objects the script can't write in log file because it is locked since it is already being used by the same script in another powershell session.

How can i run the script for only one object at a time?

Thank you.

Regards.

Redinaldo Hysesani