Zend certified PHP/Magento developer

Magento 2 : How to create new skeleton module using Bash script?

I am looking for an bash script which will create the basic new module skeleton. I’ve found this post useful but it only works from the root. Any solution?

Thanks in Advance!