Introduce tc_cmd() function for uniform tc script execution