Convert Colon Separated String to a PowerShell Dictionary
<p>I'm trying to convert Colon Separated String to a PowerShell Dictionary. Following are the strings.</p>

<pre><code>$inputkeyvalues = "Appsetting:true|environment:prod"
</code></pre>

<p>I have two key value pairs's in the <code>$inputkeyvalues</code> variable and those are separated by pipe delimiter. 
first one is: Appsetting:true
second one is: environment:prod</p>

<p>and I'm trying to convert to PowerShell dictionary. The final output should be something like,</p>

<pre><code>Key            Value
-----         -----
Appsetting     true
environment    prod

$Dictionary= New-Object "System.Collections.Generic.Dictionary``2[System.String,System.String]"
</code></pre>

<p>Can someone please suggest me possible solution for this. Thanks in advance.</p>