<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakamurakko</author_name>
  <author_url>https://blog.hatena.ne.jp/nakamurakko/</author_url>
  <blog_title>nakamurakko’s blog</blog_title>
  <blog_url>https://nakamurakko.com/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>環境 Windows 11 PSVersion 5.1.26100.4768 下記のような、2つの値を足し算して返す関数(Sum)の結果を受け取る場合、 = で代入できるけど、 function Sum($value1, $value2) { return $value1 + $value2 } $result1 = Sum 1 2 Write-Host &quot;1 : The total is $result1.&quot; # 1 : The total is 3. パイプラインを使って、結果を Set-Variable で設定する事も可能。 $result2 = 0 Sum 3 4 | Set-Vari…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnakamurakko.com%2Fentry%2F2025%2F09%2F01%2F124503&quot; title=&quot;PowerShell パイプラインから送信された値を設定する - nakamurakko’s blog&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>2025-09-01 12:45:03</published>
  <title>PowerShell パイプラインから送信された値を設定する</title>
  <type>rich</type>
  <url>https://nakamurakko.com/entry/2025/09/01/124503</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
