at the bottom of the script add this to fix it:
end
return Plugin;
About the part where it calls the admin, regular Basic Admin doesn’t support commands like that. You’ll want to check out other more advanced admin systems such as Commander (just the first one that came to mind) to do that (provided out-of the box). If you prefer Basic Admin Essentials enough, you may consider just forking the module to provide the functionality you desire (although this is hard, you’ll have to change >100 lines of code prolly).