<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tubumin</author_name>
  <author_url>https://blog.hatena.ne.jp/tubumin/</author_url>
  <blog_title>Get-Powershell</blog_title>
  <blog_url>https://getpowershell.hatenadiary.com/</blog_url>
  <categories>
    <anon>powershell</anon>
  </categories>
  <description>具体的な理由は忘れたが、Powershellをバッチファイル内で動作させたかったやりたいことがPowershellのコマンドレットで存在し、DOSコマンドで存在しない場合が特に有効 code(.bat上でpowershell) BATファイルを作成し、下記のような構文でBATファイルに記載するだけもちろんコマンドプロンプト上でも実行可能 powershell -command &quot;&lt;Powershellのスクリプト&gt;&quot; もしくは、「ファイル名を指定して実行」（キーボード：[Win]+[R]）から 変数を使用したい場合、「%&lt;変数名&gt;%」で使用しなければならない。下記はコマンドプロンプト上で実施 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgetpowershell.hatenadiary.com%2Fentry%2F2020%2F06%2F17%2F082347&quot; title=&quot;Powershellをバッチファイル（ファイル名を指定して実行）内で動作させたい - Get-Powershell&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>https://s3.qrunch.io/a398f463ac9e0b10212402dc97f4bcab.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-06-17 08:23:47</published>
  <title>Powershellをバッチファイル（ファイル名を指定して実行）内で動作させたい</title>
  <type>rich</type>
  <url>https://getpowershell.hatenadiary.com/entry/2020/06/17/082347</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
