I'm calling a PS script from Command Prompt using the following line
powershell "& 'c:/script.ps1'"
However I need the script to be relative to the command prompt window. So if command prompt was looking at C: then the script would effectively be
powershell "& 'script.ps1'"
Is there a way to inject the relative path?