I was trying to get the snapshot list for a particular machine to check it's picking the correct snapshot by just using a part of the script running directly on powercli but it's not providing any output? Any reason why?
PowerCLI D:\> $datetime = Get-Date
PowerCLI D:\> Get-Snapshot -VM machinename | Where-Object {$_.Created -lt $datetime.AddDays(-3).AddHours(-12)