Lock intent

Is there an intent to invoke/execute a Lock command rather than only via SMS?

I have a Tasker Profile set to send my phone the SMS Lock command, though I would like to invoke/execute the Lock command locally on the phone w/o relying on a data/internet connection.