This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
NetBeans should support the execution of executable JavaScript files (shebang) from command line. "Run" would work the best.
I'm not sure what you exactly mean. You can run JavaScript file, if you create NodeJs application (available in dev builds).