Add-Type -AssemblyName System.Windows.Forms
$FileBrowser = New-Object System.Windows.Forms.OpenFileDialog -Property @{
    Multiselect = $false
    InitialDirectory = "C:\minkatalog"
}
 
[void]$FileBrowser.ShowDialog()

if($filebrowser.filename -eq ""){return}

$TestFile = $FileBrowser.FileName

 

https://www.powershellmagazine.com/2013/07/01/pstip-using-the-system-windows-forms-openfiledialog-class/