title: PowerShell "echo on"
body: <p>This is a duplicate of <a href="https://serverfault.com/questions/102098/powershell-script-showing-commands-run">https://serverfault.com/questions/102098/powershell-script-showing-commands-run</a>.  I thought it would be more appropriate to ask this question here.</p>
  
  <p>I am playing around with PowerShell scripts and they're working great. However, I am wondering if there is any way to also show all the commands that were run, just as if you were manually typing them in yourself. This would be similar to "echo on" in batch files. I looked at the PowerShell command-line arguments, the cmdlets, but I didn't find anything obvious.</p>