This example will shut down the AutoMate Task Service.
Sub Main
'Shuts the AutoMate task service down right now
Action.OSCommand(4)
End Sub