I have a below script for disabling specific paths on ESXi servers in the cluster. What I want to do is the script to do is for some reason if it is unable to disable to path is to continue. -ErrorAction SilentlyContinue doesn't seems to be working. If I enter a non-existent path in the host specific input file, the scripts just stop at that junture and doesn't continue with the next host.
Below is the script: