Script to perform National Rail queries