adding script for pfunc workflow step