Object reference not set to the instance of an object - exception RRS feed

  • Question

  • I was trying to call a powershell script from c# using pipeline.Invoke()

    My powershell script uses Split-pipeline in its code. 

    pipeline.Invoke() creates an exception Object reference not set to an instance of an object . This will not occurs when I removed the split-pipeline from powershell script and use foreach loop. 

    Why this issue occurs??

    • Moved by CoolDadTx Tuesday, December 3, 2019 5:19 PM PowerShell related
    Tuesday, December 3, 2019 5:31 AM

All replies