$ 0 0 Summary: Find the last Windows PowerShell command by using an automatic variable. How can you find the last Windows PowerShell command that was run? Use the $$ automatic variable.