Any person having a right to the immediate possession of any goods or chattels, wrongfully taken or wrongfully detained, may bring an action of replevin for the recovery thereof and for damages sustained by reason of the unjust caption or detention thereof.
NMS § 42-8-1