Quote:
Originally Posted by Chaitanyansis
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!