2 changed code to shutdown immediately
source | link

Groovy, 23 bytes

'shutdown /s'p'.execute()

Groovy, 23 bytes

'shutdown /s'.execute()

Groovy, 23 bytes

'shutdown /p'.execute()
1
source | link

Groovy, 23 bytes

'shutdown /s'.execute()