<span class="hljs-keyword">using</span> <span class="hljs-keyword">namespace</span> System.Text
<span class="hljs-keyword">using</span> <span class="hljs-keyword">module</span> CardGames

<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">Get-PowerShellProcess</span></span> { <span class="hljs-built_in">Get-Process</span> PowerShell }
<span class="hljs-function"><span class="hljs-keyword">Function</span> <span class="hljs-title">Add-Numbers</span><span class="hljs-params">(<span class="hljs-variable">$one</span>, <span class="hljs-variable">$two</span>)</span></span> {
    <span class="hljs-variable">$one</span> + <span class="hljs-variable">$two</span>
}

<span class="hljs-class"><span class="hljs-keyword">enum</span> <span class="hljs-title">MediaTypes</span></span> {
    unknown
    music = <span class="hljs-number">10</span>
    mp3
    aac
    ogg = <span class="hljs-number">15</span>
}

<span class="hljs-string">"def"</span> <span class="hljs-operator">-notin</span> <span class="hljs-string">"abc"</span>, <span class="hljs-string">"def"</span>
<span class="hljs-string">"Sunday"</span> <span class="hljs-operator">-notmatch</span> <span class="hljs-string">"rain"</span>
<span class="hljs-string">"Good Dog"</span> <span class="hljs-operator">-match</span> <span class="hljs-string">"Dog"</span>
<span class="hljs-number">2</span> <span class="hljs-operator">-eq</span> <span class="hljs-number">2</span>
<span class="hljs-string">"abc"</span> <span class="hljs-operator">-ne</span> <span class="hljs-string">"def"</span>

<span class="hljs-variable">$hash</span> = <span class="hljs-selector-tag">@</span>{
    SomeKey = <span class="hljs-string">'SomeValue'</span>
    SomeKey2 = <span class="hljs-string">'SomeValue2'</span>
    SomeKey3 = <span class="hljs-string">'SomeValue3'</span>
}

<span class="hljs-variable">$client</span> = <span class="hljs-built_in">New-Object</span> System.Net.WebClient

[<span class="hljs-type">System.Environment</span>]::Commandline

<span class="hljs-variable">$notepad</span> = <span class="hljs-built_in">Get-Process</span> notepad
<span class="hljs-variable">$notepad</span>.Kill()
<span class="hljs-string">'this is rocket science'</span>.Replace(<span class="hljs-string">'rocket'</span>, <span class="hljs-string">'rock'</span>)
