Getting straight to the point, in the Scripting API of 22 build 122, Vegas.ImportFile(string fileName, bool mediaPoolOnly) no longer works as before. Instead, we can only use Vegas.ImportFile(string fileName, bool mediaPoolOnly, bool enablePromptMatchFirstVideo).
Comparison of ScriptPortal.Vegas.dll for 22 build 93 and 122:
The previous code also throws errors now in 22 build 122, which causes incompatibility with older scripts, please fix it.