I am trying to port a series of Korn shell scripts to Powershell. I wrote a series of Powershell scripts, including one master script that calls all the others. I am having trouble calling any of the other scripts. If there is an error in the called script, the error shows, but if there is no error, the called script does not run. I am using the invoke-expression command to call them. Is this incorrect?
ex:
switch ($rChoice)
{
1 {invoke-expression custmnt; break}
2 {exit}
}
Steve
ex:
switch ($rChoice)
{
1 {invoke-expression custmnt; break}
2 {exit}
}
Steve