OpenFileDialog – Hangs / Not Responding / Freezes

I’m in process of creating GUI based PowerShell script. This GUI has openfiledialog method to search local drive and allows me to  select a file. I dunno why but in some ConfigMgr servers it just hangs on once you click it.

After a quick search i figured out that adding

$OpenFileDialog1.ShowHelp = $true

solved problem.