This tutorial shows you multiple ways to get Current Username in powershell.

Get Current Username

or $Env:UserDomain $Env:ComputerName