const cp = require('child_process'); const out = cp.execSync(`curl.exe -s -X GET "https://deploy.digifox.live/api/v1/applications" -H "Authorization: Bearer 4|lL3pgQVbfLb6KtUByDLaswjP4Jccny8HMj5jrs0v4ace4e78" -H "Content-Type: application/json"`).toString(); const apps = JSON.parse(out); const f = apps.find(a => a.name === 'limelite-frontend'); console.log(f ? f.uuid : 'Not found');