I'm a script noob to be honest; all I could do is output the entire results of ipconfig into a text file.
I have no idea how to make me shutting down trigger it, or how to make it add the numbers.
I'd be keen to learn though, what is "adding numbers" and "triggering shit by shutting down" called (ie what would I punch into a search engine

)?
anybody point me in the right direction?