This is a common use case.
Yet, being new to PS is fine, but, that means you really need to get ramped up. Spend the necessary time on YouTube, Microsoft Virtual Academy, Microsoft Learn, MSDN Channel9 and search for beginning powershell, intermediate powershell, advanced powershell, PowerShell GUI, PowerShell forms, PowerShell using .Net, PowerShel WMI, PowerShell CIM, PowerShell Active Directory, etc…
A simple web search using you use case would have given you this almost immediately.
Get All AD Users Logon History with their Logged on Computers (with IPs)& OUs
This script will list the AD users logon information with their logged on computers by inspecting the Kerberos TGT Request Events(EventID 4768) from domain controllers. Not Only User account Name is fetched, but also users OU path and Computer Accounts are retrieved.