Could you share with us:
1) Error you are receiving?
2) Full cmd Syntax ?
Example:
::> volume snapshot restore-file -vserver svm_smb -volume vol_smbcifs -snapshot snap.2022-01-14_102047 -path /folder1/folder2/test.txt
Note: In the Example, make sure it is test.txt and not just test.
Restoring from client side:
https://docs.netapp.com/us-en/ontap/data-protection/snapshot-copies-work-concept.html