http://www.perlmonks.org?node_id=495236


in reply to Using Perl to shutdown windows

Why not just let the computer go to sleep? If you turn off the movie looping it should go into power save mode and effectively be "off" for the purposes of consuming electricity.

If you really want to shut down, maybe Win32::Shutdown will help? Win32::Process (part of libwin32) might help with identifying and closing your Windows Media Player process.