Invoke-Command -ComputerName 'localhost' -ScriptBlock { logoff 1 }
Invoke-Command -ComputerName 'localhost' -ScriptBlock { logoff 2 }
Invoke-Command -ComputerName 'localhost' -ScriptBlock { logoff 3 }
Invoke-Command -ComputerName 'localhost' -ScriptBlock { logoff 4 }