Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Trying to invoke script from two levels up

$
0
0

I need to execute a script that is in a path structure that is two folders up (back) from my current location.  I can not move either script.  I have tried

invoke-expression -command ".\<script name> with params but get an error saying <script name> is not a cmdlet.

can I use ..\..\?  what is the correct format?

Thanks


Viewing all articles
Browse latest Browse all 6937

Trending Articles