Determine version of a windows EXE

I'm trying to write a guard that is based around the version of a windows exe.

In pseudo-code, something like not_if { ::windows.fileversion('c:\filename.exe') < 1.0.0 }

This looks like it might be a wrapper for the winapi call to get the version, but i have no idea how to "use" it in chef?