import { WorkflowClient } from '@temporalio/client' ; import { parentWorkflow } from './workflows' ; async function run ( ) { const client = new WorkflowClient ( ) ; const result = await client . execute ( parentWorkflow , { taskQueue : 'child-workflows' , workflowId : 'parent-sample-0' , args : [ 'Alice' , 'Bob' , 'Charlie' ] , } ) ; console . log ( result ) ; } run ( ) . catch ( ( err ) => { console . error ( err ) ; process . exit ( 1 ) ; } ) ;