// Step 1 - Permissions $ chmod u+x ./cmd1.sh // Step 2 - Shebang (top of file cmd1.sh) $ #!/usr/bin/env bash // Step 3 - Config "scripts": { "cmd1": "bash ./cmd1.sh" } // Step 4 - Run $ yarn/npm run cmd1