<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>walnuts1018</author_name>
  <author_url>https://blog.hatena.ne.jp/walnuts1018/</author_url>
  <blog_title>Blog.Walnuts.dev</blog_title>
  <blog_url>https://blog.walnuts.dev/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>function SetAlias { Param( [Parameter(Mandatory = $true, Position = 0)] [string]$Alias, [Parameter(Mandatory = $true, Position = 1)] [string[]]$Command ) foreach ($cmd in $Command) { # 空白を含んでいたら関数として定義 if ($Command -match &quot;\s&quot;) { $func = &quot;function global:$Alias { $Command }&quot; Invoke-Expression $func …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.walnuts.dev%2Fentry%2F2024%2F02%2F06%2F023858&quot; title=&quot;PowerShellでAliasを設定するときの便利関数 - Blog.Walnuts.dev&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>2024-02-06 02:38:58</published>
  <title>PowerShellでAliasを設定するときの便利関数</title>
  <type>rich</type>
  <url>https://blog.walnuts.dev/entry/2024/02/06/023858</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
