Run script on current item

Oct 1, 2012 at 10:47 PM

I'm able to execute the ps script but would like to configure it to run on the current item being edited whether it's automated (new\edit) or manual.   Is it possible to determine this in the powershell code?

Joe