Use ScriptVariable::Get for "agent wizard" and "agent setup"

fixes #7520