PS D:\scripts> write-host -ForegroundColor Cyan “This is script path: $PSScriptRoot”
This is script path:
PS D:\scripts>
That’s it. That’s all I get. I also tried pasting this in PS script and same thing. It doesn’t return script path.
PS D:\scripts> write-host -ForegroundColor Cyan “This is script path: $PSScriptRoot”
This is script path:
PS D:\scripts>
That’s it. That’s all I get. I also tried pasting this in PS script and same thing. It doesn’t return script path.