View Single Post
Old 2nd September 2016, 06:23   #10
th_mi
Member
 
Join Date: Sep 2005
Location: Sitting next to my desk
Posts: 56
Quote:
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