如何从 Informatica 命令任务调用批处理文件或 powershell

如何从 Informatica 命令任务调用批处理文件或 powershell

我正在尝试从 informatica 的命令任务中调用批处理 .BAT 文件,并且使用同样具有多个命令的 powershell .PS1。工作流成功但什么也没做。虽然相同的 PS1 脚本在 powershell windows 上运行时运行良好。此 powershell 脚本在 informatica 中的命令任务上运行良好:

Get-ChildItem -Path "$PMRootDir\foldername\SrcFiles\filename*.csv"

但当使用多个命令时它什么也不做

Get-ChildItem -Path "$PMRootDir\foldername\SrcFiles\filename*.csv" | Where-Object {$_.Length -lt 100} | Remove-Item

相关内容