Align-VMsWithStorage.ps1 is a script that can be used to align your VMs with your Cluster Shared Volumes.
With Storage Spaces Direct all writes are routed through the owner of the CSV which can cause ineffiecient IO paths.  This script makes sure your VM is running on the same host which owns the CSV the VM is running on. The script finds the volume where most of your disks of your VMs are on and moves the VM there.  If you have equally spread disks, it will use the first disk as target.



See this blogpost for more information on the subject: