• Runs a command asynchronously, aggregates the stdout data, and returns it.

    Parameters

    • command: string

      Command to be executed.

    • args: string[]

      Arguments to pass to the command.

    • Optional options: ExecOptions

      Optional settings for how to run the command.

    Returns Promise<string>

    A promise that resolves with the aggregatted stdout of the command.