Check out this link. I found it using a search plink shutdown. You should be able to run plink from a bat file.