“Gestern” in der Powershell

(get-date).AddDays(-1)