[Operational Tools] Format string commands in test helper
[Operational Tools] Format string commands in test helper

Closes: #6487

aptos-labs/aptos-core,aptos-labs/aptos-core,libra/libra,libra/libra,libra/libra,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,libra/libra,libra/libra,aptos-labs/aptos-core,aptos-labs/aptos-core