I'm trying to display a message box and have no problems in ISE/Powershell; however, when I run in Visual Studio Code I get this error:
Line |
12 | $user = [Microsoft.VisualBasic.Interaction]::InputBox($msg, $title)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Method invocation failed because [Microsoft.VisualBasic.Interaction] does not contain a method named 'InputBox'.
I've added the Powershell extension to VS Code. It appears that I'm still missing something but I'm not sure what.
Any Ideas?