{"type":"rich","provider_name":"Hatena Blog","width":"100%","blog_url":"https://tech.natsuneko.blog/","blog_title":"\u306a\u3064\u306d\u3053\u30e1\u30e2","title":"PowerShell \u3067\u52d5\u7684\u306b\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u305f\u3044","url":"https://tech.natsuneko.blog/entry/2020/08/04/powershell-dynamic-function-definition","provider_url":"https://hatena.blog","author_name":"yunagi_n","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.natsuneko.blog%2Fentry%2F2020%2F08%2F04%2Fpowershell-dynamic-function-definition\" title=\"PowerShell \u3067\u52d5\u7684\u306b\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u305f\u3044 - \u306a\u3064\u306d\u3053\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/yunagi_n/","description":"PowerShell \u3067\u52d5\u7684\u306b\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u3066\u3001\u305d\u308c\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5\u3002 \u5b9f\u306e\u3068\u3053\u308d\u524d\u306e\u8a18\u4e8b\u306b\u51fa\u3066\u304d\u3066\u308b\u306e\u3060\u3051\u308c\u3069\u3082\u3002 # \u3053\u3093\u306a\u611f\u3058\u3067 $ Set-Variable -name DynFunc -value 'function dyn() { echo \"Hello\" }' -scope global $ Get-Variable DynFunc -ValueOnly | Invoke-Expression $ $ dyn Hello \u4e00\u65e6\u5909\u6570\u306b\u95a2\u6570\u306e\u672c\u4f53\u3092\u7a81\u3063\u8fbc\u3093\u3067\u3001\u3042\u3068\u3067\u305d\u308c\u3092 Invoke-Expression \u306b\u6e21\u3057\u3066\u3042\u3052\u308c\u3070\u3088\u3044\u3002 \u53c2\u8003\uff1a powershell - How do \u2026","version":"1.0","image_url":null,"categories":["PowerShell"],"published":"2020-08-03 15:00:00","height":"190"}