Script manipulation as macro

Signed-off-by: Dojisung <dojisung0@gmail.com>