Add support for task type: script and bin

Signed-off-by: kfei <kfei@kfei.net>