Unable to download file via chrome headless browser

Could you please help me how to download a file in particular location by running test in chrome headless browser in katalon studio.

I’m able to download a csv file by running the test in chrome browser with few settings. But If do the same for chrome headless, file is not downloading.

I did this like below, but still its not working.

Also the ChromeDriver version currently I’m using is 111.0.5563.19

Also added in chrome headless with these prefernces

Not sure still what I have to do change the settings to download the file

Any suggestions please, how to resolve this issue