{"id":12218,"date":"2016-06-17T06:00:43","date_gmt":"2016-06-17T13:00:43","guid":{"rendered":"https:\/\/www.sapien.com\/blog\/?p=12218"},"modified":"2016-07-13T11:38:00","modified_gmt":"2016-07-13T18:38:00","slug":"how-to-pass-parameters-to-a-pester-test-script","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/","title":{"rendered":"How to Pass Parameters to a Pester Test Script"},"content":{"rendered":"<p>Applies to Pester 3.4.0<\/p>\n<p>Like any Windows PowerShell script, a script that contains Pester tests can include parameters. It&#8217;s easy enough to run the script and pass parameters and values in the usual way.<\/p>\n<p>But, when you use Invoke-Pester to run the script, you need to pass the parameters in a hash table. This blog explains how to do it.<\/p>\n<p>This post is the third in a series about how to run Pester tests. See also, <a href=\"https:\/\/wp.me\/p3tXTf-3aE\" target=\"_new\">How to Run Pester Tests<\/a> and <a href=\"https:\/\/wp.me\/p3tXTf-3aN\" target=\"_new\">Invoke-Pester: Run Selected Tests<\/a>.<\/p>\n<blockquote><p>\nSee the posts in this Pester series:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/2016\/06\/13\/how-to-run-a-pester-test\/\" target=\"_new\">How to Run a Pester Test<\/a><\/li>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/2016\/06\/15\/invoke-pester-run-selected-tests\/\" target=\"_new\">Invoke-Pester: Running Selected Tests<\/a><\/li>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/\" target=\"_new\">How to Pass Parameters to a Pester Test Script<\/a><\/li>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/2016\/06\/24\/testing-pester-code-coverage\/\" target=\"_new\">Testing Pester Code Coverage<\/a><\/li>\n<\/ul>\n<\/blockquote>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>To use Invoke-Pester to pass parameters to a script, use a command like this one:<\/p>\n<pre lang=\"PowerShell\">Invoke-Pester -Script @{Path='C:\\Tests\\MyTests.Tests.ps1';Parameters=@{Name='Pester';Version='3.4.0'}}<\/pre>\n<p>Or, this one:<\/p>\n<pre lang=\"PowerShell\">Invoke-Pester -Script @{Path = 'C:\\Tests\\MyTests.Tests.ps1'; Arguments = 'Pester', '3.4.0'}<\/pre>\n<p>&nbsp;<\/p>\n<p>The <strong>Script<\/strong> parameter of <strong>Invoke-Pester<\/strong> typically takes a array of paths, either paths to a directory or to scripts that typically contain Pester tests, or both.<\/p>\n<p>But, it can also take a hash table. One hint is that Script parameter type is [System.Object[]], not [System.String[]].<\/p>\n<p>Here are hash table keys:<\/p>\n<ul>\n<li><strong>Path<\/strong> (required) &lt;string&gt;: The value of the Path key must be a single string, presumably (but not required) the path to directories or files. Wildcards are supported. A hash table with only the Path key is equivalent to submitting a string value to the Script parameter, except that this key is limited to one string.\n<pre lang=\"PowerShell\">Invoke-Pester -Script @{Path='C:\\Tests\\MyTests.Tests.ps1'}<\/pre>\n<\/li>\n<li><strong>Parameters<\/strong> &lt;hashtable&gt;:\u00a0 Each key-value pair in the (nested) hash table consists of a parameter name and its value, such as @{ComputerName = &#8216;localhost&#8217;}. Use this key to pass named parameter names and values to a script.\n<pre lang=\"PowerShell\">Invoke-Pester -Script @{Path = 'C:\\Tests\\MyTests.Tests.ps1'; Parameters = @{Name = 'Pester'; Version = '3.4.0'}}<\/pre>\n<\/li>\n<li><strong>Arguments<\/strong> &lt;array&gt;: Use this key to pass positional parameter values to a script, such as &#8216;localhost&#8217;, $true or @(&#8216;localhost&#8217;, $true).\n<pre lang=\"PowerShell\">Invoke-Pester -Script @{Path = 'C:\\Tests\\MyTests.Tests.ps1'; Arguments = 'Pester', '3.4.0'}<\/pre>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Invoke-Pester splats the parameters and arguments to the scripts as it calls them.<\/p>\n<p>Typically, the <strong>Path<\/strong> value in the hash table resolves to a particular script that takes the specified named and\/or positional parameters. But, when you pass parameters to a script that has no parameters, the extraneous parameters are ignored, so you can use a directory value effectively.<\/p>\n<p>For example, this command passes the ComputerName to one .Tests.ps1 file, but the command runs all .Tests.ps1 files in the directory and its subdirectories.<\/p>\n<pre lang=\"PowerShell\">Invoke-Pester -Script @{Path = 'C:\\Tests\\MyTests'; Parameters = @{ComputerName = 'localhost'}}<\/pre>\n<p>Of course, this strategy is error-prone and will not work when more than one of the scripts being run takes different parameters, so it&#8217;s probably not advisable.<\/p>\n<p>But, it&#8217;s easy enough to pass parameters to a Pester test. Pester really is amazing!<\/p>\n<p>&nbsp;<\/p>\n<p>Learning Pester? Check out <a title=\"Real-World Test-Driven Development with Pester\" href=\"https:\/\/www.youtube.com\/watch?v=gssAtCeMOoo\" target=\"_blank\">Real-World Test-Driven Development with Pester<\/a>. The code and slides are in Github at <a href=\"https:\/\/github.com\/juneb\/PesterTDD\">https:\/\/github.com\/juneb\/PesterTDD<\/a>.<\/p>\n<p><em>June Blender is a technology evangelist at SAPIEN Technologies, Inc. and a Windows PowerShell MVP. You can reach her at <\/em><a href=\"mailto:juneb@sapien.com\"><em>juneb@sapien.com <\/em><\/a><em>or follow her on Twitter at <\/em><a href=\"https:\/\/www.twitter.com\/juneb_get_help\"><em>@juneb_get_help<\/em><\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Applies to Pester 3.4.0 Like any Windows PowerShell script, a script that contains Pester tests can include parameters. It&#8217;s easy enough to run the script and pass parameters and values in the usual way. But, when you use Invoke-Pester to run the script, you need to pass the parameters in a hash table. This blog [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1122,2,1119,1121,1120,25],"tags":[1125,934,28,1124,622,997],"class_list":["post-12218","post","type-post","status-publish","format-standard","hentry","category-behavior-driven-development-bdd","category-general","category-pester","category-test-driven-development","category-testing","category-windows-powershell","tag-bdd","tag-juneb","tag-powershell","tag-tdd","tag-testing","tag-windows-powershell"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Applies to Pester 3.4.0 Like any Windows PowerShell script, a script that contains Pester tests can include parameters. It&#039;s easy enough to run the script and pass parameters and values in the usual way. But, when you use Invoke-Pester to run the script, you need to pass the parameters in a hash table. This blog\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"June Blender\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"DEV SAPIEN Blog - Tools for IT Success\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to Pass Parameters to a Pester Test Script - DEV SAPIEN Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Applies to Pester 3.4.0 Like any Windows PowerShell script, a script that contains Pester tests can include parameters. It&#039;s easy enough to run the script and pass parameters and values in the usual way. But, when you use Invoke-Pester to run the script, you need to pass the parameters in a hash table. This blog\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-06-17T13:00:43+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2016-07-13T18:38:00+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to Pass Parameters to a Pester Test Script - DEV SAPIEN Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Applies to Pester 3.4.0 Like any Windows PowerShell script, a script that contains Pester tests can include parameters. It&#039;s easy enough to run the script and pass parameters and values in the usual way. But, when you use Invoke-Pester to run the script, you need to pass the parameters in a hash table. This blog\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/06\\\/17\\\/how-to-pass-parameters-to-a-pester-test-script\\\/#blogposting\",\"name\":\"How to Pass Parameters to a Pester Test Script - DEV SAPIEN Blog\",\"headline\":\"How to Pass Parameters to a Pester Test Script\",\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\"},\"datePublished\":\"2016-06-17T06:00:43-07:00\",\"dateModified\":\"2016-07-13T11:38:00-07:00\",\"inLanguage\":\"en-US\",\"commentCount\":22,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/06\\\/17\\\/how-to-pass-parameters-to-a-pester-test-script\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/06\\\/17\\\/how-to-pass-parameters-to-a-pester-test-script\\\/#webpage\"},\"articleSection\":\"Behavior-Driven Development (BDD), General, Pester, Test-Driven Development, Testing, Windows PowerShell, BDD, juneb, powershell, TDD, testing, Windows PowerShell\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/06\\\/17\\\/how-to-pass-parameters-to-a-pester-test-script\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/general\\\/#listItem\",\"position\":2,\"name\":\"General\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/general\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/06\\\/17\\\/how-to-pass-parameters-to-a-pester-test-script\\\/#listItem\",\"name\":\"How to Pass Parameters to a Pester Test Script\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/06\\\/17\\\/how-to-pass-parameters-to-a-pester-test-script\\\/#listItem\",\"position\":3,\"name\":\"How to Pass Parameters to a Pester Test Script\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/general\\\/#listItem\",\"name\":\"General\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\",\"name\":\"DEV SAPIEN Blog\",\"description\":\"Tools for IT Success\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/#author\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/\",\"name\":\"June Blender\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/06\\\/17\\\/how-to-pass-parameters-to-a-pester-test-script\\\/#webpage\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/06\\\/17\\\/how-to-pass-parameters-to-a-pester-test-script\\\/\",\"name\":\"How to Pass Parameters to a Pester Test Script - DEV SAPIEN Blog\",\"description\":\"Applies to Pester 3.4.0 Like any Windows PowerShell script, a script that contains Pester tests can include parameters. It's easy enough to run the script and pass parameters and values in the usual way. But, when you use Invoke-Pester to run the script, you need to pass the parameters in a hash table. This blog\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/06\\\/17\\\/how-to-pass-parameters-to-a-pester-test-script\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/#author\"},\"datePublished\":\"2016-06-17T06:00:43-07:00\",\"dateModified\":\"2016-07-13T11:38:00-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/\",\"name\":\"DEV SAPIEN Blog\",\"description\":\"Tools for IT Success\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to Pass Parameters to a Pester Test Script - DEV SAPIEN Blog","description":"Applies to Pester 3.4.0 Like any Windows PowerShell script, a script that contains Pester tests can include parameters. It's easy enough to run the script and pass parameters and values in the usual way. But, when you use Invoke-Pester to run the script, you need to pass the parameters in a hash table. This blog","canonical_url":"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/#blogposting","name":"How to Pass Parameters to a Pester Test Script - DEV SAPIEN Blog","headline":"How to Pass Parameters to a Pester Test Script","author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/#author"},"publisher":{"@id":"https:\/\/dev.sapien.com\/blog\/#organization"},"datePublished":"2016-06-17T06:00:43-07:00","dateModified":"2016-07-13T11:38:00-07:00","inLanguage":"en-US","commentCount":22,"mainEntityOfPage":{"@id":"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/#webpage"},"isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/#webpage"},"articleSection":"Behavior-Driven Development (BDD), General, Pester, Test-Driven Development, Testing, Windows PowerShell, BDD, juneb, powershell, TDD, testing, Windows PowerShell"},{"@type":"BreadcrumbList","@id":"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/dev.sapien.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/general\/#listItem","position":2,"name":"General","item":"https:\/\/dev.sapien.com\/blog\/topics\/general\/","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/#listItem","name":"How to Pass Parameters to a Pester Test Script"},"previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/#listItem","position":3,"name":"How to Pass Parameters to a Pester Test Script","previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/general\/#listItem","name":"General"}}]},{"@type":"Organization","@id":"https:\/\/dev.sapien.com\/blog\/#organization","name":"DEV SAPIEN Blog","description":"Tools for IT Success","url":"https:\/\/dev.sapien.com\/blog\/"},{"@type":"Person","@id":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/#author","url":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/","name":"June Blender"},{"@type":"WebPage","@id":"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/#webpage","url":"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/","name":"How to Pass Parameters to a Pester Test Script - DEV SAPIEN Blog","description":"Applies to Pester 3.4.0 Like any Windows PowerShell script, a script that contains Pester tests can include parameters. It's easy enough to run the script and pass parameters and values in the usual way. But, when you use Invoke-Pester to run the script, you need to pass the parameters in a hash table. This blog","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/#breadcrumblist"},"author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/#author"},"creator":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/#author"},"datePublished":"2016-06-17T06:00:43-07:00","dateModified":"2016-07-13T11:38:00-07:00"},{"@type":"WebSite","@id":"https:\/\/dev.sapien.com\/blog\/#website","url":"https:\/\/dev.sapien.com\/blog\/","name":"DEV SAPIEN Blog","description":"Tools for IT Success","inLanguage":"en-US","publisher":{"@id":"https:\/\/dev.sapien.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"DEV SAPIEN Blog - Tools for IT Success","og:type":"article","og:title":"How to Pass Parameters to a Pester Test Script - DEV SAPIEN Blog","og:description":"Applies to Pester 3.4.0 Like any Windows PowerShell script, a script that contains Pester tests can include parameters. It's easy enough to run the script and pass parameters and values in the usual way. But, when you use Invoke-Pester to run the script, you need to pass the parameters in a hash table. This blog","og:url":"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/","article:published_time":"2016-06-17T13:00:43+00:00","article:modified_time":"2016-07-13T18:38:00+00:00","twitter:card":"summary_large_image","twitter:title":"How to Pass Parameters to a Pester Test Script - DEV SAPIEN Blog","twitter:description":"Applies to Pester 3.4.0 Like any Windows PowerShell script, a script that contains Pester tests can include parameters. It's easy enough to run the script and pass parameters and values in the usual way. But, when you use Invoke-Pester to run the script, you need to pass the parameters in a hash table. This blog"},"aioseo_meta_data":{"post_id":"12218","title":null,"description":null,"keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":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_image_url":null,"og_image_width":null,"og_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_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"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,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-08-28 16:01:33","updated":"2026-08-28 16:01:33"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dev.sapien.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dev.sapien.com\/blog\/topics\/general\/\" title=\"General\">General<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Pass Parameters to a Pester Test Script\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/dev.sapien.com\/blog"},{"label":"General","link":"https:\/\/dev.sapien.com\/blog\/topics\/general\/"},{"label":"How to Pass Parameters to a Pester Test Script","link":"https:\/\/dev.sapien.com\/blog\/2016\/06\/17\/how-to-pass-parameters-to-a-pester-test-script\/"}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/12218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=12218"}],"version-history":[{"count":13,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/12218\/revisions"}],"predecessor-version":[{"id":12501,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/12218\/revisions\/12501"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=12218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=12218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=12218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}