1. In an action for divorce, separation or annulment or in an action to declare the nullity of a void marriage in the supreme court, the supreme court or the family court shall entertain an application for an order of protection or temporary order of protection by either party.
Such an order may require any party:
(a) to stay away from the home, school, business or place of employment of the child, other parent or any other party, and to stay away from any other specific location designated by the court;
(b) to permit a parent, or a person entitled to visitation by a court order or a separation agreement, to visit the child at stated periods;
(c) to refrain from committing a family offense, as defined in subdivision one of section 530.11 of the criminal procedure law, or any criminal offense against such child or against the other parent or against any person to whom custody of the child is awarded or from harassing, intimidating or threatening such persons;
(d) to permit a designated party to enter the residence during a specified period of time in order to remove personal belongings not in issue in a proceeding or action under this chapter or the family court act;
(e) to refrain from acts of commission or omission that create an unreasonable risk to the health, safety or welfare of a child;
(f) to pay the reasonable counsel fees and disbursements involved in obtaining or enforcing the order of the person who is protected by such order if such order is issued or enforced;
(g) to refrain from intentionally injuring or killing, without justification, any companion animal the respondent knows to be owned, possessed, leased, kept or held by the person protected by the order or a minor child residing in such person's household. "Companion animal," as used in this section, shall have the same meaning as in subdivision five of section three hundred fifty of the agriculture and markets law;
(h)
(1) to promptly return specified identification documents to the protected party, in whose favor the order of protection or temporary order of protection is issued; provided, however, that such order may:
(A) include any appropriate provision designed to ensure that any such document is available for use as evidence in this proceeding, and available if necessary for legitimate use by the party against whom such order is issued; and
(B) specify the manner in which such return shall be accomplished.
(2) For purposes of this paragraph, "identification document" shall mean any of the following:
(A) exclusively in the name of the protected party: birth certificate, passport, social security card, health insurance or other benefits card, a card or document used to access bank, credit or other financial accounts or records, tax returns, any driver's license, and immigration documents including but not limited to a United States permanent resident card and employment authorization document; and
(B) upon motion and after notice and an opportunity to be heard, any of the following, including those that may reflect joint use or ownership, that the court determines are necessary and are appropriately transferred to the protected party: any card or document used to access bank, credit or other financial accounts or records, tax returns, and any other identifying cards and documents;
(i)
(1) to refrain from remotely controlling any connected devices affecting the home, vehicle or property of the person protected by the order.
(2) For purposes of this paragraph, "connected device" shall mean any device, or other physical object that is capable of connecting to the internet, directly or indirectly, and that is assigned an internet protocol address or bluetooth address; and
(j) to observe such other conditions as are necessary to further the purposes of protection.