I am using powershell commands to execute scripts and cmdlets. So while executing cmdlets I used powershell.invoke and while executing a script I used pipeline.invoke method. I wanted to know if there is any difference between the System.Management.Automation.pipeline.invoke() method and System.Management.Automation.Runspaces.powershell.invoke() method.