$date.Date.AddDays(7-($date).DayOfWeek.value__).AddMilliseconds(-1)
Example
PS C:\> $Date = Get-Date
>> $date.Date.AddDays(7-($date).DayOfWeek.value__).AddMilliseconds(-1)


Saturday, March 30, 2019 11:59:59 PM