Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

"Start In" Argument in powershell when running a .exe?

$
0
0

Trying to run a script(that runs an .exe) that looks a bit like this : Invoke-Command -ComputerName $Server -ScriptBlock {$command}

I am trying to make it start from a specified path (right click an exe and click properties and see "Start in"). How do I change this argument in the script?

No idea how to do this. Sorry for poorly worded sentence, I'm not too sure on the terms to use.


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>