use sync way instead async since the script is essentially procedural

+ fixed logs color for "runCommand"