module Mixlib::ShellOut::Windows

def command_to_run

def command_to_run
  if command =~ SHOULD_USE_CMD
    [ ENV['COMSPEC'], "cmd /c #{command}" ]
  else
    [ which(command[0,command.index(/\s/) || command.length]), command ]
  end
end