Test1.ps1 has below code.....
## Calling script to spool the verbose log to a log file ##
$ScriptPath = Split-Path $MyInvocation.MyCommand.Path
Invoke-Expression "& `"$ScriptPath\Test2.ps1`" $InstallPath $BackupPathApplication"
Now I want to redirect/append output to the log file...Not sure how to pass that in the invoke-expression?
Invoke-Expression "& `"$ScriptPath\Test2.ps1`" $InstallPath $BackupPathApplication >> Logfile.log" ?