Skip to content

Instantly share code, notes, and snippets.

@steviecoaster
Created July 20, 2018 17:32
Show Gist options
  • Save steviecoaster/8775d9f7e30d5ee21af129d5ccd72049 to your computer and use it in GitHub Desktop.
Save steviecoaster/8775d9f7e30d5ee21af129d5ccd72049 to your computer and use it in GitHub Desktop.
Explaining Conversations with my Wife in Powershell
Function New-SocialInteraction {
[cmdletBinding()]
Param(
[Parameter(Mandatory, Positon = 0)]
[String]$Person,
[Parameter(Mandatory, Position = 1)]
[String]$Topic
)
New-PSDrive -Name Brain -PSProvider FileSystem -Root Noggin
If ($Person -eq 'Wife') {
Get-Content Brain:\$person_$topic.txt | Out-Null
}
}
New-SocialInteraction -Person Wife -Topic 'Honey Do List' | Out-Null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment