powershell には、ハッシュテーブルを System.Version に変換する方法があります。エラーは、「System.Collections.Hashtable」型の「System.Collections.Hashtable」値を「System.Version」型に変換できません。
foreach ループの例では、キーと値の 2 つの変数を dbDictionary に追加します。
$dbDictionary.Add($dbChangesfiles, $line)
次に、その dbDictionary を System.Version に変換して、System.Version に変換した他の 2 つの変数に対して参照できるようにします。
$dbDictionaryAsVersion = [System.Version]$dbDictionary
どんな助けでもいただければ幸いです