After connecting the J42 jumper the DFU device was detected:

 sudo dfu-util -d 0x1fc9:0x000c -l
[sudo] password for alan: 
dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Found DFU: [1fc9:000c] ver=0100, devnum=79, cfg=1, intf=0, path="3-3", alt=0, name="DFU", serial="ABCD"

But while running the LPCScript I am getting this error I’m getting:

$ sudo ./program_CMSIS

LPCScrypt - CMSIS-DAP firmware programming script v2.1.3 Jul 2023.

Connect an LPC-Link2 or LPCXpresso V2/V3 Board via USB then press Space.
Booting LPCScrypt
No bootable LPCScrypt target found
dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Found DFU: [1fc9:000c] ver=0100, devnum=79, cfg=1, intf=0, path="3-3", alt=0, name="DFU", serial="ABCD"
(Grepping for 0x1fc9:0x000c)
Boot Failed!
Ensure One Debug Probe is configured to DFU-Boot and connected via USB.
  - For LPC-Link2: remove link JP1 (nearest USB) and power cycle
  - For LPCXpresso V2/V3: make DFU link and power cycle

Update: This guy also faced similar issue: https://community.nxp.com/t5/LPC-Microcontrollers/LPCScrypt-not-working/m-p/1133258