I am new to scripting. I created a ps1 file that I want to deploy to Sharepoint Central Admin to create a Timer Job. I created a Timer Job script using C#, how can I go about calling the ps1 file within my C# program? How would I execute my script Ex: C:\MyItems.ps1?
Asked
Active
Viewed 193 times
0
-
5you tried this ? http://stackoverflow.com/questions/527513/execute-powershell-script-from-c-sharp-with-commandline-arguments – Zwan Dec 09 '15 at 15:56
-
should be tons of previous questions on this – Jaqueline Vanek Dec 09 '15 at 15:56
-
`Process.Start("C:\MyItems.ps1");` – stuartd Dec 09 '15 at 16:04