The following example returns the command of step 2 into the variable varStepCommand, then displays it in a message box.
Sub Main
Dim varStepCommand As Variant
varStepCommand = CurrentTask2.GetStepCommand (1)
MsgBox varStepCommand
End Sub