Invoke-RemoteForcedLogoff.ps1
function Invoke-RemoteForcedLogoff { <# .SYNOPSIS Short Description .DESCRIPTION Detailed Description .EXAMPLE Invoke-RemoteForcedLogoff explains how to use the command can be multiple lines .EXAMPLE Invoke-RemoteForcedLogoff another example can have as many examples as you like #> [CmdletBinding()] param ( [Parameter(Mandatory=$true, Position=0)] [System.String] $computer ) (Get-WmiObject -Class win32_operatingsystem -ComputerName $computer).Win32Shutdown(4) } |