Is it legal to hand write an eviction notice?

for what i know it is not legal to have a hand written eviction notice in the state of ny also the landlord must go to court to legal eviction notice