I am trying to create my own script to be placed in my extension /bin folder so that once I finished it, it should work in this way
bin/mycommandname my-customcommand
instead of running the
bin/magento
Is there any documentation or something which someone can help me out in this regard ?