EscapeDataString having differing behaviour between Powershell IDE and Powershell console EscapeDataString having differing behaviour between Powershell IDE and Powershell console powershell powershell

EscapeDataString having differing behaviour between Powershell IDE and Powershell console


Here is the difference, per the source: [System.UriParser].GetField('s_QuirksVersion', [Reflection.BindingFlags] 'Static, NonPublic').GetValue($null).

I marked the answer as community wiki because it appeared in the comments, causing the question to appear in searches for unanswered questions.