How to list all VMs and assigned memory on the Hyper-V cluster.

We are preparing for the migration from Hyper-V to VMware. I am collecting all information before migration. One of the tasks was to collect all memory assigned to all VMs.

Get-VM -ComputerName (Get-ClusterNode -Cluster CLUSTER_NAME) | Select-Object Name, DynamicMemoryEnabled, MemoryAssigned, MemoryMinimum, ProcessorCount, Path