Skip to content

Check-Week

Determines the week number

try {
	$WeekNo = (Get-Date -UFormat %V)
	& "$PSScriptRoot/speak-english.ps1" "It's week #$WeekNo."
	exit 0 # success
} catch {
	"?? ERROR: $($Error[0]) (script line $($_.InvocationInfo.ScriptLineNumber))"
	exit 1
}

This script has no configurable parameters.

An interactive directory of PowerShell scripts.