I would like to do shutdown process in my script.
I use Stop-Computer. But it always reboots, doesn't shut down. I tried stop-computer alone, it works, but when I applied it to my script, it reboots, doesn't shut down, can anyone give any idea please?


