I am trying to run the commands from powershell file using System.Management.Automation.Runspaces.Pipeline class.
System.Management.Automation.Runspaces.Pipeline
It works when I pass the script directl