I saw that thread, but completely missed what/how it was working. This is a neat idea. Definitely keeping this option open for other things. Glad you saw it.

MSDN Documentation: http://msdn.microsoft.com/en-us/library/aa227413%28VS.60%29.aspx

Based on a few searches .language is supposed to default to vbscript but removing that line breaks the script.


A little more cleanup
 Code:
Function InputBox($sPrompt,Optional $sTitle,$sDefaultValue)
    Dim $sc
    $sc = CreateObject("ScriptControl")
    $sc.language = "VBScript"
    $inputbox = $sc.Eval('Inputbox("' + $sPrompt + '","' + $sTitle + '","' + $sDefaultValue + '")')
EndFunction