How can I get frame number and output path in the pre-task script?