Jimmy the Wishing Train Engine by Rodney L Miller Jr. Bookshop
The Wishing Train Engine is about two kids that find a train engine in the woods and find out that it is a wishing train so they get three wishes a peace, and they are able to keep the wishes they make.