The state's Dept. of Health (DOH) can pull people from their homes and quarantine them to stop the spread of communicable disease. The state does not have to prove the individual is sick. The DOH can hold individuals for however long they want; there is no way to get out of lock down unless they get a lawyer and sue.
Continue reading New York: Courts Pave Way for Quarantine Camps at Need To Know.
Source