I want to run a Powershell script (.ps1) to deploy Biztalk2009 artifacts in a virtual machine.
The .ps1 file is launched from the dos command file named 'install.cmd'.
As part of the install.cmd file, Powershell runs:
powershell -command "& {get-content %1 | .\Install.ps1}"
The 24 parameters necessary for the script are stored in the .txt file, and the file name is specified as the parameter of the dos command file. A parameter file is a regular .txt file. Therefore, I run the dos command file as:
install.cmd dev.txt
Now I have a few exceptions and I want to debug the Powershell script (s). The original Powershell script uses a second Powershell script function called "functions.ps1".
Exceptions arise from the 2nd script.
How can I easily debug Powershell scripts that run from the dos command?
source share