Scripts: Write executed commands to log file
Scripts: Write executed commands to log file

Also write any error message to an error text file if the temporary directory is not being erased

MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3