Replaced Shell execution with exec command

Added script logging capability