@Ego95, wakeonlan send a "magic packet" to power on a seperate computer across the same local area network. It does not turn a computer off or suspend it.
I think you meant the shutdown command, not wakeonlan because this command would shutdown a Windows computer in 30 seconds:
shutdown /s /t 30