{"id":13794,"date":"2024-08-13T21:00:06","date_gmt":"2024-08-13T12:00:06","guid":{"rendered":"https:\/\/extan.jp\/?p=13794"},"modified":"2024-08-13T21:00:06","modified_gmt":"2024-08-13T12:00:06","slug":"powershell%e3%81%a7%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%81%ae%e5%87%a6%e7%90%86%e3%82%92%e4%b8%ad%e6%96%ad%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%954%e9%81%b8%ef%bc%81exit-break-return-throw","status":"publish","type":"post","link":"https:\/\/extan.jp\/?p=13794","title":{"rendered":"PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u65b9\u6cd54\u9078\uff01exit\/break\/return\/throw\u30b3\u30de\u30f3\u30c9\u8aac\u660e\uff01"},"content":{"rendered":"<p>PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u3082\u304f\u3058<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/extan.jp\/?p=13794\/#1_exit_%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B\" >1. exit \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/extan.jp\/?p=13794\/#2_break_%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B\" >2. break \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/extan.jp\/?p=13794\/#3_return_%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B\" >3. return \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/extan.jp\/?p=13794\/#4_throw_%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B\" >4. throw \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"1_exit_%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B\"><\/span>1. <code>exit<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>exit<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u3092\u7d42\u4e86\u3057\u3001\u6307\u5b9a\u3057\u305f\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u8fd4\u3057\u307e\u3059\u3002\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 <code>0<\/code> \u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><strong>\u4f7f\u3044\u65b9<\/strong><\/p>\n<div class=\"info\"><code>exit [\u7d42\u4e86\u30b3\u30fc\u30c9]<\/code><\/div>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\"># \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d42\u4e86\u3057\u3001\u7d42\u4e86\u30b3\u30fc\u30c9\u3092 0 \u3068\u3059\u308b\nexit \n# \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d42\u4e86\u3057\u3001\u7d42\u4e86\u30b3\u30fc\u30c9\u3092 1 \u3068\u3059\u308b\nexit 1<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"2_break_%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B\"><\/span>2. <code>break<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>break<\/code> \u30b3\u30de\u30f3\u30c9\u306f\u3001\u30eb\u30fc\u30d7\u3084 <code>switch<\/code> \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4e2d\u3067\u4f7f\u7528\u3055\u308c\u3001\u30eb\u30fc\u30d7\u3084 <code>switch<\/code> \u3092\u7d42\u4e86\u3057\u307e\u3059\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u5168\u4f53\u3092\u7d42\u4e86\u3059\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><strong>\u4f7f\u3044\u65b9<\/strong><\/p>\n<div class=\"info\"><code>break<\/code><\/div>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">foreach ($item in 1..10) {\nif ($item -eq 5) {\nbreak  # \u30eb\u30fc\u30d7\u3092\u7d42\u4e86\n}\nWrite-Output $item\n}<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"3_return_%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B\"><\/span>3. <code>return<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>return<\/code> \u30b3\u30de\u30f3\u30c9\u306f\u3001\u95a2\u6570\u3084\u30b9\u30af\u30ea\u30d7\u30c8\u30d6\u30ed\u30c3\u30af\u306e\u4e2d\u3067\u4f7f\u7528\u3055\u308c\u3001\u305d\u306e\u5b9f\u884c\u3092\u7d42\u4e86\u3057\u3066\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u4f7f\u3044\u65b9<\/strong><\/p>\n<div class=\"info\"><code>return [\u623b\u308a\u5024]<\/code><\/div>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">function Get-Sum {\n    param ($a, $b)\n    $sum = $a + $b\n    if ($sum -gt 10) {\n        return &quot;\u5408\u8a08\u304c10\u3092\u8d85\u3048\u307e\u3057\u305f: $sum&quot;\n    }\n    return $sum\n}\n\n$result = Get-Sum -a 5 -b 7\nWrite-Output $result<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"4_throw_%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B\"><\/span>4. <code>throw<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>throw<\/code> \u30b3\u30de\u30f3\u30c9\u306f\u3001\u30a8\u30e9\u30fc\u3092\u30b9\u30ed\u30fc\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u3092\u4e2d\u65ad\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u5916\u304c\u767a\u751f\u3059\u308b\u3068\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a8\u30e9\u30fc\u72b6\u614b\u3068\u306a\u308a\u3001\u547c\u3073\u51fa\u3057\u5143\u306b\u30a8\u30e9\u30fc\u304c\u4f1d\u64ad\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u4f7f\u3044\u65b9<\/strong><\/p>\n<div class=\"info\"><code>throw [\u4f8b\u5916\u30e1\u30c3\u30bb\u30fc\u30b8]<\/code><\/div>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">function Divide-Numbers {\n    param ($a, $b)\n    if ($b -eq 0) {\n        throw &quot;\u30bc\u30ed\u9664\u7b97\u30a8\u30e9\u30fc: 0 \u3067\u5272\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002&quot;\n    }\n    return $a \/ $b\n}\n\ntry {\n    $result = Divide-Numbers -a 10 -b 0\n    Write-Output $result\n} catch {\n    Write-Output &quot;\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f: $_&quot;\n}<\/code><\/pre>\n<p>\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u3092\u4e2d\u65ad\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u6700\u9069\u306a\u65b9\u6cd5\u3092\u9078\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002 1. exit \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b exit \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u3092\u7d42\u4e86\u3057\u3001\u6307\u5b9a\u3057\u305f\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u8fd4\u3057\u307e\u3059\u3002\u7d42\u4e86\u30b3\u30fc&#8230;<\/p>\n","protected":false},"author":1,"featured_media":10244,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[204],"tags":[171],"class_list":{"0":"post-13794","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-powershell","8":"tag-171","9":"article cf"},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u30bf\u30ab\u30d2\u30ed@extan\"\/>\n\t<meta name=\"keywords\" content=\"\u4e2d\u65ad\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/extan.jp\/?p=13794\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u65b9\u6cd54\u9078\uff01exit\/break\/return\/throw\u30b3\u30de\u30f3\u30c9\u8aac\u660e\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=13794\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-08-13T12:00:06+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-08-13T12:00:06+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u65b9\u6cd54\u9078\uff01exit\/break\/return\/throw\u30b3\u30de\u30f3\u30c9\u8aac\u660e\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13794#article\",\"name\":\"PowerShell\\u3067\\u30b9\\u30af\\u30ea\\u30d7\\u30c8\\u306e\\u51e6\\u7406\\u3092\\u4e2d\\u65ad\\u3059\\u308b\\u65b9\\u6cd54\\u9078\\uff01exit\\\/break\\\/return\\\/throw\\u30b3\\u30de\\u30f3\\u30c9\\u8aac\\u660e\\uff01 | \\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"headline\":\"PowerShell\\u3067\\u30b9\\u30af\\u30ea\\u30d7\\u30c8\\u306e\\u51e6\\u7406\\u3092\\u4e2d\\u65ad\\u3059\\u308b\\u65b9\\u6cd54\\u9078\\uff01exit\\\/break\\\/return\\\/throw\\u30b3\\u30de\\u30f3\\u30c9\\u8aac\\u660e\\uff01\",\"author\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/extan.jp\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/powershell.png\",\"width\":857,\"height\":607,\"caption\":\"powershell\"},\"datePublished\":\"2024-08-13T21:00:06+09:00\",\"dateModified\":\"2024-08-13T21:00:06+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13794#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13794#webpage\"},\"articleSection\":\"PowerShell, \\u4e2d\\u65ad\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13794#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/extan.jp\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=47#listItem\",\"name\":\"Microsoft 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=47#listItem\",\"position\":2,\"name\":\"Microsoft 365\",\"item\":\"https:\\\/\\\/extan.jp\\\/?cat=47\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=204#listItem\",\"name\":\"PowerShell\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=204#listItem\",\"position\":3,\"name\":\"PowerShell\",\"item\":\"https:\\\/\\\/extan.jp\\\/?cat=204\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13794#listItem\",\"name\":\"PowerShell\\u3067\\u30b9\\u30af\\u30ea\\u30d7\\u30c8\\u306e\\u51e6\\u7406\\u3092\\u4e2d\\u65ad\\u3059\\u308b\\u65b9\\u6cd54\\u9078\\uff01exit\\\/break\\\/return\\\/throw\\u30b3\\u30de\\u30f3\\u30c9\\u8aac\\u660e\\uff01\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=47#listItem\",\"name\":\"Microsoft 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13794#listItem\",\"position\":4,\"name\":\"PowerShell\\u3067\\u30b9\\u30af\\u30ea\\u30d7\\u30c8\\u306e\\u51e6\\u7406\\u3092\\u4e2d\\u65ad\\u3059\\u308b\\u65b9\\u6cd54\\u9078\\uff01exit\\\/break\\\/return\\\/throw\\u30b3\\u30de\\u30f3\\u30c9\\u8aac\\u660e\\uff01\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=204#listItem\",\"name\":\"PowerShell\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\",\"name\":\"\\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"description\":\"\\u50cd\\u304f\\u4eba\\u306e\\u81ea\\u7531\\u6642\\u9593\\u3092\\u3064\\u304f\\u308b\",\"url\":\"https:\\\/\\\/extan.jp\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\",\"url\":\"https:\\\/\\\/extan.jp\\\/?author=1\",\"name\":\"\\u30bf\\u30ab\\u30d2\\u30ed@extan\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13794#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u30bf\\u30ab\\u30d2\\u30ed@extan\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13794#webpage\",\"url\":\"https:\\\/\\\/extan.jp\\\/?p=13794\",\"name\":\"PowerShell\\u3067\\u30b9\\u30af\\u30ea\\u30d7\\u30c8\\u306e\\u51e6\\u7406\\u3092\\u4e2d\\u65ad\\u3059\\u308b\\u65b9\\u6cd54\\u9078\\uff01exit\\\/break\\\/return\\\/throw\\u30b3\\u30de\\u30f3\\u30c9\\u8aac\\u660e\\uff01 | \\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13794#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/extan.jp\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/powershell.png\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13794\\\/#mainImage\",\"width\":857,\"height\":607,\"caption\":\"powershell\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=13794#mainImage\"},\"datePublished\":\"2024-08-13T21:00:06+09:00\",\"dateModified\":\"2024-08-13T21:00:06+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/extan.jp\\\/#website\",\"url\":\"https:\\\/\\\/extan.jp\\\/\",\"name\":\"\\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"description\":\"\\u50cd\\u304f\\u4eba\\u306e\\u81ea\\u7531\\u6642\\u9593\\u3092\\u3064\\u304f\\u308b\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u65b9\u6cd54\u9078\uff01exit\/break\/return\/throw\u30b3\u30de\u30f3\u30c9\u8aac\u660e\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","description":"","canonical_url":"https:\/\/extan.jp\/?p=13794","robots":"max-image-preview:large","keywords":"\u4e2d\u65ad","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/extan.jp\/?p=13794#article","name":"PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u65b9\u6cd54\u9078\uff01exit\/break\/return\/throw\u30b3\u30de\u30f3\u30c9\u8aac\u660e\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","headline":"PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u65b9\u6cd54\u9078\uff01exit\/break\/return\/throw\u30b3\u30de\u30f3\u30c9\u8aac\u660e\uff01","author":{"@id":"https:\/\/extan.jp\/?author=1#author"},"publisher":{"@id":"https:\/\/extan.jp\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/extan.jp\/wp-content\/uploads\/2022\/12\/powershell.png","width":857,"height":607,"caption":"powershell"},"datePublished":"2024-08-13T21:00:06+09:00","dateModified":"2024-08-13T21:00:06+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/extan.jp\/?p=13794#webpage"},"isPartOf":{"@id":"https:\/\/extan.jp\/?p=13794#webpage"},"articleSection":"PowerShell, \u4e2d\u65ad"},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=13794#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/extan.jp#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extan.jp","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=47#listItem","name":"Microsoft 365"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=47#listItem","position":2,"name":"Microsoft 365","item":"https:\/\/extan.jp\/?cat=47","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=204#listItem","name":"PowerShell"},"previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=204#listItem","position":3,"name":"PowerShell","item":"https:\/\/extan.jp\/?cat=204","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?p=13794#listItem","name":"PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u65b9\u6cd54\u9078\uff01exit\/break\/return\/throw\u30b3\u30de\u30f3\u30c9\u8aac\u660e\uff01"},"previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=47#listItem","name":"Microsoft 365"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?p=13794#listItem","position":4,"name":"PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u65b9\u6cd54\u9078\uff01exit\/break\/return\/throw\u30b3\u30de\u30f3\u30c9\u8aac\u660e\uff01","previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=204#listItem","name":"PowerShell"}}]},{"@type":"Organization","@id":"https:\/\/extan.jp\/#organization","name":"\u30a8\u30af\u77ed\uff5cExtan.jp","description":"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b","url":"https:\/\/extan.jp\/"},{"@type":"Person","@id":"https:\/\/extan.jp\/?author=1#author","url":"https:\/\/extan.jp\/?author=1","name":"\u30bf\u30ab\u30d2\u30ed@extan","image":{"@type":"ImageObject","@id":"https:\/\/extan.jp\/?p=13794#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g","width":96,"height":96,"caption":"\u30bf\u30ab\u30d2\u30ed@extan"}},{"@type":"WebPage","@id":"https:\/\/extan.jp\/?p=13794#webpage","url":"https:\/\/extan.jp\/?p=13794","name":"PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u65b9\u6cd54\u9078\uff01exit\/break\/return\/throw\u30b3\u30de\u30f3\u30c9\u8aac\u660e\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","inLanguage":"ja","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"breadcrumb":{"@id":"https:\/\/extan.jp\/?p=13794#breadcrumblist"},"author":{"@id":"https:\/\/extan.jp\/?author=1#author"},"creator":{"@id":"https:\/\/extan.jp\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/extan.jp\/wp-content\/uploads\/2022\/12\/powershell.png","@id":"https:\/\/extan.jp\/?p=13794\/#mainImage","width":857,"height":607,"caption":"powershell"},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=13794#mainImage"},"datePublished":"2024-08-13T21:00:06+09:00","dateModified":"2024-08-13T21:00:06+09:00"},{"@type":"WebSite","@id":"https:\/\/extan.jp\/#website","url":"https:\/\/extan.jp\/","name":"\u30a8\u30af\u77ed\uff5cExtan.jp","description":"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b","inLanguage":"ja","publisher":{"@id":"https:\/\/extan.jp\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"\u30a8\u30af\u77ed\uff5cExtan.jp","og:type":"article","og:title":"PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u65b9\u6cd54\u9078\uff01exit\/break\/return\/throw\u30b3\u30de\u30f3\u30c9\u8aac\u660e\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","og:url":"https:\/\/extan.jp\/?p=13794","article:published_time":"2024-08-13T12:00:06+00:00","article:modified_time":"2024-08-13T12:00:06+00:00","twitter:card":"summary","twitter:title":"PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u65b9\u6cd54\u9078\uff01exit\/break\/return\/throw\u30b3\u30de\u30f3\u30c9\u8aac\u660e\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp"},"aioseo_meta_data":{"post_id":"13794","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"created":"2026-06-24 15:27:57","updated":"2026-06-24 15:27:57","primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\/?cat=47\" title=\"Microsoft 365\">Microsoft 365<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\/?cat=204\" title=\"PowerShell\">PowerShell<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u65b9\u6cd54\u9078\uff01exit\/break\/return\/throw\u30b3\u30de\u30f3\u30c9\u8aac\u660e\uff01\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/extan.jp"},{"label":"Microsoft 365","link":"https:\/\/extan.jp\/?cat=47"},{"label":"PowerShell","link":"https:\/\/extan.jp\/?cat=204"},{"label":"PowerShell\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u65b9\u6cd54\u9078\uff01exit\/break\/return\/throw\u30b3\u30de\u30f3\u30c9\u8aac\u660e\uff01","link":"https:\/\/extan.jp\/?p=13794"}],"_links":{"self":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/13794","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13794"}],"version-history":[{"count":9,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/13794\/revisions"}],"predecessor-version":[{"id":14014,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/13794\/revisions\/14014"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/media\/10244"}],"wp:attachment":[{"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}