I'm creating a new function through the API. Part of the responsibility of the function is to gather a list of operations from the open PS session and populate a userform with this data. However, when the userform is still active, I see that you can still go and add/delete/modify the operations in PS. Is there a way to halt this behavior from happening while the command is still active / while the the userform is still displayed? Any help would be appreciated, thanks.