Option Explicit
Sub Main
Dim intReturn As Integer
intReturn = Action2.ShutdownMachine
If intReturn = 0 Then
MsgBox "Shutdown failed"
MsgBox( Action2.GetLastError )
End If
End Sub