View Single Post
Old 2nd September 2016, 05:23   #10
Join Date: Sep 2005
Location: Sitting next to my desk
Posts: 56
Originally Posted by Chaitanyansis View Post
Didn't worked

EXEC 'powershell.exe "& "C:\PowerShell\TestParameter.ps1 -param1 1"'
I tested it, for me it worked perfectly exactly the way I described. I used the script I posted here and also the exec call. The only thing I did was addeng the path to the powershell.exe and also to the test.ps1.

It worked as expected!

This signature is currently on vacation!
th_mi is offline   Reply With Quote