Try something like this.
Change the $whatif variable to $false if you want to actually stop the running VMs.
Same for the starting part.
$whatif = $true
$clusterName = 'Cluster1'
$fileName = 'C:\Temp\VMnames.csv'
# Stopping
$vms = Get-Cluster -Name $clusterName | Get-VM | where{$_.PowerState -eq 'PoweredOn'}
$vms | Shutdown-VMGuest -Confirm:$false -WhatIf:$whatif
$vms | select Name | Export-Csv -Path $fileName -NoTypeInformation -UseCulture
# Starting
$vms = Import-Csv -Path $fileName -UseCulture
Get-VM -Name $vms.Name | Start-VM -WhatIf:$whatif