Hi,
The script looks OK to me. Have you checked $servernames or the file C:\Temp\Servers.txt?
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
There should not be a problem with start-process as long as the .exe exists. Use Test-Path to verify that client.exe is on that particular server. Then check task manager to verify that the process is running. Or add a "get-process -name client" to the scriptblock.
Remember that Invoke-Command is in an unattended session on the remote computer, so if you were expecting to see a GUI window from the app on the desktop , that won't happen.