This .btm file will launch your PowerShell Script in the PowerShell ISE for debugging...
Code:
@setlocal
@echo off
echo Generating Powershell Script...
type <<- endtext > psise.ps1
Write-Host Good Day!
(get-date).tostring()
endtext
echo Launching Powershell Script in Debugger...
powershell_ise psise.ps1
echo All done!
endlocal
You can even launch your .btm via the TCC Debugger...
...which will then launch the PowerShell ISE to debug your PowerShell Script, and then return to the TCC debugger to finish debugging the .btm.
Joe