Execution external commands

I want execute shell cmd, for example :

const { spawn } = require([‘child_process’]);
const child = spawn(‘pwd’);

Bur I receive : Uncaught ReferenceError: require is not defined

@sergemorvan29 are you using Cesium in this project? If so can you elaborate a bit on what you’re trying to do?

This sounds like a general Node/JavaScript question, which you might get more help with on other forums specific to that.