Skip to content

Instantly share code, notes, and snippets.

@kilasuit
Last active December 14, 2021 03:57
Show Gist options
  • Save kilasuit/9f884401a1edeef90b9695fe0b9f2cbd to your computer and use it in GitHub Desktop.
Save kilasuit/9f884401a1edeef90b9695fe0b9f2cbd to your computer and use it in GitHub Desktop.
Simple get next train function
function Get-NextTrain {
$from = "MAN"
$to = "MAC"
$date = Get-date -Format ddMMyy
$time = Get-date -Format HHmm
$url = "http://ojp.nationalrail.co.uk/service/timesandfares/$from/$to/$date/$time/dep/"
start iexplore $url
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment