# Get first day of Month
$FirstWeekDay = Get-Date $date.Date -day 1
# if day is Sat or Sun add days until it is not
while(0,6 -contains $FirstWeekDay.DayOfWeek.value__){
$FirstWeekDay = $FirstWeekDay.AddDays(1)
}
$FirstWeekDay
Returns the first weekday of the month for any given date.
PS C:\> $date = Get-Date '6/1/2019' >> $FirstWeekDay = Get-Date $date.Date -day 1 >> while(0,6 -contains $FirstWeekDay.DayOfWeek.value__){ >> $FirstWeekDay = $FirstWeekDay.AddDays(1) >> } >> $FirstWeekDay Monday, June 3, 2019 12:00:00 AM