{"id":3330,"date":"2013-07-12T11:35:45","date_gmt":"2013-07-12T15:35:45","guid":{"rendered":"http:\/\/jdhitsolutions.com\/blog\/?p=3330"},"modified":"2013-07-12T11:35:45","modified_gmt":"2013-07-12T15:35:45","slug":"friday-fun-new-thriller-revised","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/","title":{"rendered":"Friday Fun: New-Thriller Revised"},"content":{"rendered":"<p><a href=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/07\/bookreader.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/07\/bookreader-150x150.png\" alt=\"bookreader\" width=\"150\" height=\"150\" class=\"alignleft size-thumbnail wp-image-3331\" \/><\/a>A few years ago I posted a PowerShell script to autogenerate a synopsis for a standard thriller. It was a lot of fun and demonstrated out to build complex strings using the -F operator. I decided to revisit this script and tweaked it some. The main change is that instead of using the -F operator, which can be a little confusing to beginners, I simply take advantage of variable expansion. Here' the new code.<\/p>\n<pre class=\"lang:ps decode:true \" >\r\n$title = \"The Omega Plan\",\"Deep Rising\",\"The Last Icon\",\"Exit 1\",\"The Silver Goose\",\"The Last Man Standing\",\"Old MacDonald's Farm\",\"redrum\",\"Running on Empty\",\"Paradise City\",\"The Hidden Door\",\"No Yesterdays\",\"The Xipher Cipher\",\"Whiskey Tango Foxtrot\" | Get-Random\r\n$name = \"Tim Burr\",\"Jack Frost\",\"Paul Bunyan\",\"Roy Biv\",\"Calvin Hobbes\",\"Art Deco\",\"Rocky Cliff\",\"Wes Lathers\",\"Jim Shorts\",\"Wayne Manner\" | Get-Random\r\n$first = ($name | Get-Random).Split()[0]\r\n$former = \"Navy SEAL\",\"Army Ranger\",\"NASA shuttle astronaut\",\"Green Beret\",\"NSA analyst\",\"Secret Service agent\",\"CIA agent\",\"IT administrator\",\"Delta Team commander\" | Get-Random\r\n$villian = \"The Society\",\"The Guild\",\"SPECTRE\",\"The Brotherhood\",\"The Guardians\",\"Google\",\"Microsoft\",\"The Illuminati\",\"The Shadow\",\"The Black List\",\"Microsoft\",\"Google\",\"Oracle\",\"Yahoo\" | Get-Random\r\n$family = \"son\",\"daughter\",\"wife\",\"mother\",\"father\",\"dog\",\"hamster\",\"sister\",\"brother\",\"twin\" | Get-Random\r\n$tragedy = \"the tragic loss of his $family\",\"the nightmares of war\",\"a missing library book\",\"a toothache\",\"a fear of flying\", \"the Cubs losing record\",\"the failure of Windows Vista\" | Get-Random\r\n$mystery = \"Clippy\",\"Bieber Fever\",\"who shot J.R.\",\"Google Glass\",\"Macchu Pichu\",\"meatloaf\",\"Atlantis\",\"the missing Mayans\",\"alien abductions\",\"Easter Island\",\"chocolate covered bacon\",\"Anastasia\",\"the Holy Grail\",\"the last pharoah\",\"the secret Pope\" | Get-Random\r\n$backdrop = \"North Dakota\",\"ancient Egypt\",\"ancient Greece\",\"Istanbul\",\"Redmond\",\"Omaha\",\"Singapore\",\"Antarctica\",\"the Hindu Kush\",\"the Amazon rain forest\",\"Disney World\",\"the Gobi Desert\",\"Newark\" | Get-Random -Count 2\r\n$loveInterest = \"Sheila\",\"Brandi\",\"Betty\",\"Layla\",\"Emma\",\"Elizabeth\",\"Alice\",\"Rebecca\" | Get-Random\r\n$loveBackstory = \"a former student\",\"his ex-wife\",\"his mentor's daughter\",\"the librarian\",\"a Harvard symbologist\" | Get-Random\r\n\r\n$blurb = @\"\r\n'$Title' throws former $former $Name in the \r\nmiddle of an extraordinary adventure that will\r\npush him beyond the breaking point. While on a seemingly\r\nidyllic holiday $first quickly finds himself trapped \r\nin the middle of a series of catastrophic events \r\nunleashed by the sinister organization $villian,\r\nthat threaten not only his sanity but the very fabric\r\nof society. Haunted by $tragedy, $first must overcome\r\na complex and diabolic plot surrounding the mystery of \r\n$mystery. Swept up by forces unseen, $loveinterest, \r\n$loveBackStory, is paired with $first in an uneasy \r\nalliance that will test them both. \r\n\r\nSet amidst the exotic backdrops of $($backdrop[0]) and \r\n$($backdrop[1]), $first and $loveInterest will make a \r\ndiscovery that will change their world and ours, forever. \r\nHunted relentlessly by $villian, $first and $loveInterest\r\nhave but one chance to stop them. But can they do it before \r\ntime runs out?\"\r\n\"@\r\n\r\n#get a random color EXCEPT what is being used for the current background color\r\n$fg= [enum]::GetValues([system.consolecolor]) | where {$_ -notcontains $host.ui.rawui.backgroundcolor} | Get-Random\r\n\r\nWrite-Host $blurb -ForegroundColor $fg<\/pre>\n<p>The first part of the script defines the necessary elements for the story blurb. Each array of items is piped to Get-Random to return a single value. Except for $backdrop which gets 2 random elements from the list. The $blurb variable is a here-string that replaces all the variables with their values. The only tricky one is that the backdrops need a little extra help because $backdrop is an array so I have to use a subexpression.<\/p>\n<p>The other change, which is purely cosmetic and fun, is that I get a random console color and write the blurb to the screen using that color. Because I don't want the color to be the same as the current background color, I filter that value out. It is possible you'll still get some dark colors that are hard to read. But this is just for fun anyway.<\/p>\n<p>Here are some sample thrillers:<\/p>\n<p>'Deep Rising' throws former NASA shuttle astronaut Paul Bunyan in the<br \/>\nmiddle of an extraordinary adventure that will<br \/>\npush him beyond the breaking point. While on a seemingly<br \/>\nidyllic holiday Paul quickly finds himself trapped<br \/>\nin the middle of a series of catastrophic events<br \/>\nunleashed by the sinister organization The Brotherhood,<br \/>\nthat threaten not only his sanity but the very fabric<br \/>\nof society. Haunted by the nightmares of war, Paul must overcome<br \/>\na complex and diabolic plot surrounding the mystery of<br \/>\nBieber Fever. Swept up by forces unseen, Emma,<br \/>\nthe librarian, is paired with Paul in an uneasy<br \/>\nalliance that will test them both. <\/p>\n<p>Set amidst the exotic backdrops of the Gobi Desert and<br \/>\nOmaha, Paul and Emma will make a<br \/>\ndiscovery that will change their world and ours, forever.<br \/>\nHunted relentlessly by The Brotherhood, Paul and Emma<br \/>\nhave but one chance to stop them. But can they do it before<br \/>\ntime runs out?\"<\/p>\n<p>'The Xipher Cipher' throws former Green Beret Tim Burr in the<br \/>\nmiddle of an extraordinary adventure that will<br \/>\npush him beyond the breaking point. While on a seemingly<br \/>\nidyllic holiday Tim quickly finds himself trapped<br \/>\nin the middle of a series of catastrophic events<br \/>\nunleashed by the sinister organization Microsoft,<br \/>\nthat threaten not only his sanity but the very fabric<br \/>\nof society. Haunted by a missing library book, Tim must overcome<br \/>\na complex and diabolic plot surrounding the mystery of<br \/>\nchocolate covered bacon. Swept up by forces unseen, Betty,<br \/>\nhis mentor's daughter, is paired with Tim in an uneasy<br \/>\nalliance that will test them both. <\/p>\n<p>Set amidst the exotic backdrops of Redmond and<br \/>\nSingapore, Tim and Betty will make a<br \/>\ndiscovery that will change their world and ours, forever.<br \/>\nHunted relentlessly by Microsoft, Tim and Betty<br \/>\nhave but one chance to stop them. But can they do it before<br \/>\ntime runs out?\"<\/p>\n<p>My next step is to parse the words so that each line is about 80 characters and can break on a word boundary. I started playing with regular expressions to handle this but ran out of time. So maybe another time. Enjoy and happy reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few years ago I posted a PowerShell script to autogenerate a synopsis for a standard thriller. It was a lot of fun and demonstrated out to build complex strings using the -F operator. I decided to revisit this script and tweaked it some. The main change is that instead of using the -F operator,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"New blog post Friday Fun: New-Thriller Revised  #PowerShell","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[271,4],"tags":[568,534],"class_list":["post-3330","post","type-post","status-publish","format-standard","hentry","category-friday-fun","category-powershell","tag-friday-fun","tag-powershell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Friday Fun: New-Thriller Revised &#8226; The Lonely Administrator<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Friday Fun: New-Thriller Revised &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"A few years ago I posted a PowerShell script to autogenerate a synopsis for a standard thriller. It was a lot of fun and demonstrated out to build complex strings using the -F operator. I decided to revisit this script and tweaked it some. The main change is that instead of using the -F operator,...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2013-07-12T15:35:45+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/07\/bookreader-150x150.png\" \/>\n<meta name=\"author\" content=\"Jeffery Hicks\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:site\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeffery Hicks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3330\\\/friday-fun-new-thriller-revised\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3330\\\/friday-fun-new-thriller-revised\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"Friday Fun: New-Thriller Revised\",\"datePublished\":\"2013-07-12T15:35:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3330\\\/friday-fun-new-thriller-revised\\\/\"},\"wordCount\":580,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3330\\\/friday-fun-new-thriller-revised\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/07\\\/bookreader-150x150.png\",\"keywords\":[\"Friday Fun\",\"PowerShell\"],\"articleSection\":[\"Friday Fun\",\"PowerShell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3330\\\/friday-fun-new-thriller-revised\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3330\\\/friday-fun-new-thriller-revised\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3330\\\/friday-fun-new-thriller-revised\\\/\",\"name\":\"Friday Fun: New-Thriller Revised &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3330\\\/friday-fun-new-thriller-revised\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3330\\\/friday-fun-new-thriller-revised\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/07\\\/bookreader-150x150.png\",\"datePublished\":\"2013-07-12T15:35:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3330\\\/friday-fun-new-thriller-revised\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3330\\\/friday-fun-new-thriller-revised\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3330\\\/friday-fun-new-thriller-revised\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/07\\\/bookreader.png\",\"contentUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/07\\\/bookreader.png\",\"width\":191,\"height\":182},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3330\\\/friday-fun-new-thriller-revised\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Friday Fun\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/friday-fun\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Friday Fun: New-Thriller Revised\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/\",\"name\":\"The Lonely Administrator\",\"description\":\"Practical Advice for the Automating IT Pro\",\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\",\"name\":\"Jeffery Hicks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"caption\":\"Jeffery Hicks\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Friday Fun: New-Thriller Revised &#8226; The Lonely Administrator","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/","og_locale":"en_US","og_type":"article","og_title":"Friday Fun: New-Thriller Revised &#8226; The Lonely Administrator","og_description":"A few years ago I posted a PowerShell script to autogenerate a synopsis for a standard thriller. It was a lot of fun and demonstrated out to build complex strings using the -F operator. I decided to revisit this script and tweaked it some. The main change is that instead of using the -F operator,...","og_url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/","og_site_name":"The Lonely Administrator","article_published_time":"2013-07-12T15:35:45+00:00","og_image":[{"url":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/07\/bookreader-150x150.png","type":"","width":"","height":""}],"author":"Jeffery Hicks","twitter_card":"summary_large_image","twitter_creator":"@JeffHicks","twitter_site":"@JeffHicks","twitter_misc":{"Written by":"Jeffery Hicks","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"Friday Fun: New-Thriller Revised","datePublished":"2013-07-12T15:35:45+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/"},"wordCount":580,"commentCount":3,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/#primaryimage"},"thumbnailUrl":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/07\/bookreader-150x150.png","keywords":["Friday Fun","PowerShell"],"articleSection":["Friday Fun","PowerShell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/","url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/","name":"Friday Fun: New-Thriller Revised &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/#primaryimage"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/#primaryimage"},"thumbnailUrl":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/07\/bookreader-150x150.png","datePublished":"2013-07-12T15:35:45+00:00","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/#primaryimage","url":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/07\/bookreader.png","contentUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/07\/bookreader.png","width":191,"height":182},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3330\/friday-fun-new-thriller-revised\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Friday Fun","item":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},{"@type":"ListItem","position":2,"name":"Friday Fun: New-Thriller Revised"}]},{"@type":"WebSite","@id":"https:\/\/jdhitsolutions.com\/blog\/#website","url":"https:\/\/jdhitsolutions.com\/blog\/","name":"The Lonely Administrator","description":"Practical Advice for the Automating IT Pro","publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jdhitsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9","name":"Jeffery Hicks","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","caption":"Jeffery Hicks"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":6161,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/6161\/friday-fun-powershell-thriller-revisited\/","url_meta":{"origin":3330,"position":0},"title":"Friday Fun: PowerShell Thriller Revisited","author":"Jeffery Hicks","date":"November 16, 2018","format":false,"excerpt":"A number of years ago I shared a fun PowerShell script that generated a description of a new thriller you might find in the action thriller section of your local book store. I modeled it after the works of authors like Vince Flynn, Ben Coes and James Rollins. I'm a\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2018\/11\/image_thumb-3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2018\/11\/image_thumb-3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2018\/11\/image_thumb-3.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2018\/11\/image_thumb-3.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1052,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1052\/friday-fun-new-thriller\/","url_meta":{"origin":3330,"position":1},"title":"Friday Fun &#8211; New Thriller","author":"Jeffery Hicks","date":"January 14, 2011","format":false,"excerpt":"I read a lot of thrillers by authors like James Rollins, Jeff Long, Douglas Preston and Lincoln Childs. Certainly not high-brow literature, but generally well written and often a lot of fun. Of course with any fiction genre, there are certain thematic paradigms that must be followed, almost as if\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1233,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1233\/friday-fun-convertto-text-file\/","url_meta":{"origin":3330,"position":2},"title":"Friday Fun ConvertTo Text File","author":"Jeffery Hicks","date":"March 18, 2011","format":false,"excerpt":"When I'm working on simple PowerShell scripts, I find myself using the PowerShell ISE. When I need to share those scripts on my blog I inevitably need to save the script as a text file so I can post it. I finally realized that instead of the few manual steps,\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8629,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8629\/friday-fun-a-powershell-welcome\/","url_meta":{"origin":3330,"position":3},"title":"Friday Fun: A PowerShell Welcome","author":"Jeffery Hicks","date":"October 15, 2021","format":false,"excerpt":"I realized it had been a while since I wrote a Friday Fun post. These posts are intended to demonstrate PowerShell in a fun and often non-practical way. The end result is generally irrelevant. The PowerShell scripting techniques and concepts I use are the real takeaways. The task is nothing\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/10\/welcome-ps.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/10\/welcome-ps.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/10\/welcome-ps.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":6175,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/6175\/more-fun-with-powershell-thrillers\/","url_meta":{"origin":3330,"position":4},"title":"More Fun with PowerShell Thrillers","author":"Jeffery Hicks","date":"November 20, 2018","format":false,"excerpt":"Last week I posted a Friday Fun article about using PowerShell to create a synopsis for a hypothetical thriller novel. Naturally I wasn't satisfied to leave it at that. Don't get me wrong, it was a good start. But I needed to take the next logical step. I had a\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2018\/11\/image_thumb-6.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2018\/11\/image_thumb-6.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2018\/11\/image_thumb-6.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2018\/11\/image_thumb-6.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2081,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/2081\/friday-fun-powershell-valentines-day\/","url_meta":{"origin":3330,"position":5},"title":"Friday Fun PowerShell Valentines Day","author":"Jeffery Hicks","date":"February 10, 2012","format":false,"excerpt":"With Valentine's Day just around the corner, I thought I should help you out with your gift giving. Remember those bags of candy with the cute sayings like \"Be Mine\"? Here's how you can create a \"bag\" of them using Windows PowerShell; perfect for that extra geeky significant other. Or\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2012\/02\/valentines-300x104.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=3330"}],"version-history":[{"count":0,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3330\/revisions"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=3330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=3330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=3330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}