run-script creator for npm emulating libraries