$script:CurrentPath = (Get-Item .).FullName $script:TargetFilename = "ไทยไทย.txt" $script:CollectionFilename = "unicode-bug-collection.txt" $script:CollectionName = "UnicodeBug" Out-File -FilePath "$script:CurrentPath\$script:TargetFilename" Set-Content -Path "$script:CurrentPath\$script:CollectionFilename" -Value "$script:CurrentPath\$script:TargetFilename" & "$env:ProgramFiles\GPSoftware\Directory Opus\dopusrt.exe" /col import /clear /create /nocheck $script:CollectionName "$script:CurrentPath\$script:CollectionFilename" & "$env:ProgramFiles\GPSoftware\Directory Opus\dopusrt.exe" /acmd Go NEWTAB findexisting path=coll://$script:CollectionName/