AR Powershell Script log

Hi Team.

When running your PS via ARS what are you using to log that the script has run and doing what you expect?

I have been using Start-Transcript and End-Transscript but the issue with that is that it seems to if there is a problem and it cant stop the transscript it  locks the log file up and it cant be deleted until the AR Service is restarted

Just looking for a better solution 

Thank in advance