The code for function_ask.ps1 is: function global:ask { param( [string]$title, [string]$question, [string]$defaultAnswer ) #write-host "$title`n" #write-host "$question`n" #write-host "$defaultAnswer`n" [void][System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') [string]$reply = [Microsoft.VisualBasic.Interaction]::InputBox(${question},${title},${defaultAnswer}) return $reply }