Did you download the rails hw_trinket.txt and hw_bowcraft.txt to the same directory as the rail engine and your HW quester?
If so, you might not be close enough to the Heartwood sparkle entrance. If you're playing on a freeshard, the entrance to Heartwood might be different and you might not be able to use this script without some extra modification.