Retrieve and update custom columns data in SharePoint

There is a requirement to get the folders based on custom status column and once processing is done we need to change status column value for the particular folder in SharePoint.

Any workaround for this . Please suggest