I made this video years ago when I first started learning command prompt and one thing I don't mention in this is that if you want to remote shutdown, BOTH computers must be on the same network and all the remote setting on each computer must be configured correctly. This is a tutorial on using the command promp and cmd commands. its kinda hard to understand but i find it usefull.
it will also show you lots of cmd tricks with ip addresses.
command prompt
cmd commands
آی-ویدئو