Learn how to identify a PowerShell local session using Get-CimInstance cmdlet and Win32_Battery class name.