(view source code of shutdown.ps as plain text)
if ( $HOME[0] -eq "/" ) {
# Linux
shutdown -P
} else {
# Windows
( Get-WMIObject -Query "Select * From Win32_OperatingSystem Where Primary=True" ).ShutDown( )
}
page last modified: 2024-04-16; loaded in 0.0062 seconds