chore: change 'char const' to 'const char'
add prepare_command and exec_command functions