running powershell script in C# RRS feed

  • Question

  • Hello all,

        New to powershell. I currently have a powershell script that I can run successfully from the powershell command line. I run it piping the output to a log file:

          PS B:\CurrentProjects\CabCheck> .\CabCheck.ps1 | out-file output.log

        I trying to figure out how to do this exact same call in my C# code. Can anyone help with this?

    Tuesday, June 26, 2012 2:13 PM