Thank you for any help or pointers.
I am trying to develop script that will
1. import a list of VMs.
2. rename append or rename the VM to their current VM name, but with this added "decomm-req#"
3.wait 7 days from when the script was run to power down the VM.
4. 7 days after the vm was powered down delete the vm from disk.
$serverlist = Get-Content C:\Users\pgrro\Desktop\Computers.txt
foreach ($vm in $serverlist){
Set-VM -VM vmname -Name vmname-decomm-C64861 -Confirm:$false
Get-VM $VM | Stop-VM -Kill -Confirm:$false
}