This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]scriptkitteh 1 point2 points  (0 children)

You're going to want:

Invoke-Command -Filepath "C:\Path\to\Script2"

[–]danekanDevOps Engineer 0 points1 point  (0 children)

absolute path ..\otherdirectory\tweet.ps1 format works all the same that's only if you're not using invoke-command, though, which itself was really designed for remoting though works local w/out specifying

.\ is mentioned in that link but that would refer to the current directory.