How to get the step's ProcessName and print it out?

Primarily,I want to set the processname as a kind of arguments.And transmit it to eventaction.