<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>munibus</author_name>
  <author_url>https://blog.hatena.ne.jp/munibus/</author_url>
  <blog_title>Muni Bus</blog_title>
  <blog_url>https://munibus.hatenablog.com/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>DateTimeオブジェクトのDayOfWeekプロパティを使う。以下は、水曜日か木曜日にコマンドを実行するスクリプトの例。 $dow = [DateTime]::Today.DayOfWeek if (($dow -eq &quot;Wednesday&quot;) -or ($dow -eq &quot;Thursday&quot;)) { Write-Output &quot;水曜か木曜なので実行する&quot; } else { Write-Output &quot;水曜でも木曜でもないので実行しない&quot; }</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmunibus.hatenablog.com%2Fentry%2F2022%2F12%2F05%2F223520&quot; title=&quot;【PowerShell】特定の曜日だけコマンドを実行する - Muni Bus&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-12-05 22:35:20</published>
  <title>【PowerShell】特定の曜日だけコマンドを実行する</title>
  <type>rich</type>
  <url>https://munibus.hatenablog.com/entry/2022/12/05/223520</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
