Why can't I run wbadmin from within a Ruby script

[PROLOGUE: I am running Ruby (ruby 1.9.3p484 (2013-11-22)
[i386-mingw32]) on Windows Server 2008 using the Windows Installer.]

I can run wbadmin from the command line like this:

$ c:\windows\system32\wbadmin.exe -?

And it works (I get a proper help message, ellided here). However, when
I try it in Ruby (as in this IRB session:)

irb(main):001:0> w=IO.popen(‘c:\windows\system32\wbadmin.exe -?’)

I get the following error:

Errno::ENOENT: No such file or directory -
c:\windows\system32\wbadmin.exe -?
from (irb):1:in popen' from (irb):1 from C:/Ruby193/bin/irb:12:in

This is preventing me from ever running wbadmin like this.

Any ideas why?

Found out why:

On Windows 2008, a 32-bit application cannot “see” the wbadmin
application because Windows manipulates the file system based on whether
you are 32-bits or 64.

So I uninstalled Ruby, installed a 64-bit version, and everythings fine
now.