Create On-hand Adjustment in close and adjustment through x++

Hi All,

I want to increase cost value for some on hand items by x++

Is there anyone have idea about how to create and post On-hand Adjustment in close and adjustment through x++??