Private/GetWeek.ps1
function GetWeek([datetime]$DateTime = (Get-Date)) { $cultureInfo = [System.Globalization.CultureInfo]::CurrentCulture $cultureInfo.Calendar.GetWeekOfYear($DateTime,$cultureInfo.DateTimeFormat.CalendarWeekRule,$cultureInfo.DateTimeFormat.FirstDayOfWeek) } |