I need to put together a PS driven restore job for a set of files on a Windows VM, stepping through the revisions going back several weeks. Just learning Powershell from the videos and am not familiar with the snapin. Other than that, no problem.

What I'd like to create is a function that would let me do an OS level file restore from a given job for a given VM over a set of restore points. Perhaps something like:
rest_files(Backup,Mail,50-30,d:\mail\users\jack\*.grp,overwrite=yes)
where Backup is the name of the backup job, Mail is the VM name, 50-30 is the range of the restore points (going from 50 to 30), and the path would be the file(s) needing to be restored. Perhaps have an overwrite flag as well if desired.
Can someone outline the steps I need to put this together? Is this something the snapin modules can do?
Thanks!
--Ben