implements comand line input and bash automation