我正在从批处理文件运行powershell脚本:try{Start-Transcript-path("C:\PS\Logs\XXXX_Session_QA_"+(Get-Date).tostring("yyyyMMdd-hhmmss-tt")+".txt")}catch{stop-transcript}每次运行脚本时,我都会看到错误Error:Transcriptionhasnotbeenstarted.Usethestart-transcriptcommandtostarttranscription.我已经浏览了一些或大部分以前的帖子,代码应该可以工作,但它根本没有触发。初始日志文件