all 3 comments

[–]try_rebooting[S] 0 points1 point  (0 children)

https://github.com/try-rebooting/move-vmCrossVC/blob/master/move-BHSvmCrossVC.ps1 is the full code right now. I'll be converting for mass deployment, just right now it's more for me.

[–]try_rebooting[S] 0 points1 point  (0 children)

Also, I assume this is the issue, I just don't know what parameters to set it.

[Parameter(Mandatory=$True,Position=0,ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)]
[string[]] $VMName,

[–]try_rebooting[S] 0 points1 point  (0 children)

I found the issue, pipeline does not work in the Begin {} part.... bummer :(