title: What is the difference between pipeline.invoke and powershell.invoke?
body: <p>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 <code>System.Management.Automation.pipeline.invoke()</code> method and <code>System.Management.Automation.Runspaces.powershell.invoke()</code> method.</p>