Hi @oemScript ,
this might help:
$dayOfWeek = (Get-Date).DayOfWeek
if ($dayOfWeek -eq "Friday" -or $dayOfWeek -eq "Saturday" -or $dayOfWeek -eq "Tuesday") {
Write-Output "It's $dayOfWeek ... lets start with some fancy stuff"
} else {
Write-Output "It's $dayOfWeek ... lets wait and do nothing"
}
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten