This error occurs when requesting an executable from a remote Puppet master that cannot be executed.
Set the user/group executable bits appropriately on the master:
file { "C:/tmp/foo.exe": 
source => "puppet:///modules/foo/foo.exe",
 } 
exec { 'C:/tmp/foo.exe': 
logoutput => true 
}
This should do!