is it possible to open a explorer window from powershell and store the path selected in the explorer, to a variable?
to open explorer window from powershell
Here is a solution that opens explorer dialog window, asking user to select a folder. Then stores the folder path inside a variable named "path":
Add-Type -AssemblyName System.Windows.Forms
$browser = New-Object System.Windows.Forms.FolderBrowserDialog
$null = $browser.ShowDialog()
$path = $browser.SelectedPathode