[pre]#Both are functions - Working
Get-SgVm -SGNumber 8 -NoRecursion -Legacy | Connect-VMRDPSession -Datacenter DC1[/pre]
**
[pre]#First in pipeline is script the second one is a function - Working
.\Get-SgVm.ps1 -SGNumber 8 -NoRecursion -Legacy | Connect-VMRDPSession -Datacenter DC1[/pre]
**
[pre]#Both are scripts - Only the last object (VM) of the pipeline gets processed by the second script (only one RDP session is opened)
.\Get-SgVm.ps1 -SGNumber 8 -NoRecursion -Legacy | .\Connect-VMRDPSession.ps1 -Datacenter DC1[/pre]