Thank you, I have posted an issue in github.
The inf-ruby works well in the same environment. My script 'd:/dev/scripts/Ruby/blog/script/rails' is:
#!/usr/bin/env ruby.exe
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
APP_PATH = File.expand_path('../../config/application', __FILE__)
require File.expand_path('../../config/boot', __FILE__)
require 'rails/commands'