[Concept] [PATCH 03/19] scripts: Use the same main() approach fo both scripts