I am trying to get currently logged in users who has active session.

In the task manager, the list is crystal clear that there are two user sessions and one is active.

I want to query the same via Powershell. 
I tried few of the available commands
`Get-WmiObject Win32_LoggedOnUser | Select Antecedent -Unique` which lists lot more users than I can even see [domain joined computer]

I am looking for the query which can give results exactly like Task Manager.
[![enter image description here](https://i.stack.imgur.com/aeFoZ.png)](https://i.stack.imgur.com/aeFoZ.png)