open -a [App] [MyFile]
for instance
open -a "Google Chrome" https://www.apple.com
const cp = require("child_process") cp.spawnSync('open', [ '-a', 'Google Chrome', 'https://www.apple.com' ])
Shell script