Build the framework for thread operations, including reading command from 'command files'