We have a helper for this: https://github.com/Homebrew/homebrew/blob/master/Library/Homebrew/extend/pathname.rb#L397

`(bin/"drake").write_jar_script libexec/"drake.jar"`