generate bin script