Faker gem with automatic script

I'm trying to use the faker gem to put random data in my demo app. How do I run a ruby script from the command line and have it run within my rails development environment?