Access API scripting variable from script

Ok, so I did a bit of searching, but some of the API stuff is not totally clear to me. I wrote a custom php script and I need to access the API call "current_user_can("access_s2member_level1")" to check to see if the user can actually do what this script does (it's limited to level 1 members).
Obviously calling current_user_can("access_s2member_level1") directly in the file does nothing but throw an error. Is there a simple way to pull that information into my script so I can do this one simple conditional?
Thanks,
Bryan
Obviously calling current_user_can("access_s2member_level1") directly in the file does nothing but throw an error. Is there a simple way to pull that information into my script so I can do this one simple conditional?
Thanks,
Bryan