epmautomate.bat flag -d not available when running Powershell?
Summary:
I need to redirect the output from "epmautomate runIntegration" to a file when executing from Powershell, but am getting an error. The output file does get generated.
When running from a command batch file, I am able to redirect the output to a file without error.
Content (please ensure you mask any confidential information):
$ret = &$epmAutomate $JobType $JobName importMode=Replace exportMode=Merge periodName="{$periodStart}{$periodEnd}" -d 2>&1
At C:\...\Bin\Load_CY_LOCFX_PSActuals.ps1:204 char:8
+ $ret = &$epmAutomate $JobType $JobName importMode=Replace exportMode= ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (EPMAutomate version is 23.12.26:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Version (include the version you are using, if applicable):