How to start the user deprovisioning from a scheduled script

Hello,

I need to start the deprovisioning of a user from a scheduled script. The is a better way to do that?

I am thinking about a value in a virtual attribute to trigger the deprovisioning.

Any other idea?

Thanks