Moved bash commands into bash script