use Win32; Win32::InitiateSystemShutdown(...);