Run a List of Dynamic commands using Invoke-Expression in powershell

77 Views Asked by At

I have a PowerShell script which I am invoking to generate few pdf files the script is invoking node js script which is generating pdf files using react-pdf but issue is if one pdf generation failed it don't move on to next file on the list as I am getting a list of files from a remote endpoint, is there any way to kill the nodejs Invoke-Expression command process after one or two min and continue to next item

0

There are 0 best solutions below