title: Using powershell to get current user context
body: <p>I have a powershell script running as a scheduled task.  For elevation reasons the task runs as a script user, but I really need the script to be able to determine the user that is logged in and active when the script runs (It needs to be able to copy files from their profile).</p>
  
  <p><strong>Is there a command I can utilize to get the current user context?</strong></p>