Here's an example script: ``` powershell echo $PSScriptRoot ``` It should output current script path if written to a file, but prints nothing instead. It seems to be supported in Pash modules (although I haven't really checked it), but should be accessible to ordinary scripts also.
Here's an example script:
echo $PSScriptRootIt should output current script path if written to a file, but prints nothing instead.
It seems to be supported in Pash modules (although I haven't really checked it), but should be accessible to ordinary scripts also.