Delete log file if already exists
Introduce a Result struct containing the Success flag and Output of a command
refactoring...