I'm not aware of any way of doing this, I'm afraid. The agent is capable of running a user-specified executable at the end of an update task, but that option doesn't appear to exist for scan tasks
It sounds like a good PER to enter
A more complete solution would be enhance the client task architecture such that:
- a new client task task type could be multi-step like server tasks which is configured using other client task types.
- a new platform specific task type could be system tasks which would include items such as shutdown.
- build the multi-step client task using a scan task and system task.