added command args support to script