I have a powershell script in say \Folder\ I then have an exe that I am trying to execute from \Folder\Files\
How can I execute that file without having to specify the whole path and just use either current folder then drill down to Files.
I am trying to use something like this but its not working
Start-Process -FilePath '.\Files\setup.exe' -ArgumentList "-s" -Wait
.refers to the current working directory, but you want to refer to the script directory. That question has been answered here before though (see the link in my first comment).