Show the currently logged in user to a Show-UDToast?

Can’t find any documentation on the command to get the currently logged in user and output it. If anyone knows this that’d really help me out.

Thank you!

Product: PowerShell Universal
Version: 1.4.6

You can use the built-in $User variable.

More information here:

Perfect, going to mess around with it now. Thank you!

That’s exactly it! Thank you so much. This tool is unbelievably powerful, so much so I’m having trouble finding everything in all the documentation. It’s really good documentation but a lot.