Framework for transcripting

I have some PS scripts that I need to debug in a remote scenario. Is there any way to have PS transcribe what it is running as it runs and save that to a local file?

Any thoughts on how I might be able to accomplish this?

Thanks in advanced.
Paul.

Have you looked at Start-Transcript?

Ah ha — perfect – let me see how that works!