The cast of NBC's "Saturday Night Live" poked fun at President Obama's use of executive action on immigration during a comedy sketch referencing the educational cartoon "School House Rock."

In the sketch, comedian Kenan Thompson is dressed as the iconic bill while spoofing the song "I'm Just a Bill."

Then Obama, portrayed by Jay Pharoah, shoves the bill down the steps of the Capitol in favor of using executive orders.

Meanwhile, comedian Bobby Moynihan, who is dressed as an executive order, struts onto stage.

"I'm an executive order and I pretty much just happen. And that's it," sang the executive order while smoking a cigarette.

"Wait a minute, don't you have to go through Congress at some point?" asks a student.

"Oh, that's adorable — you think that's still how Congress works?" the executive order replies.

The sketch even had Sen. Ted CruzTed CruzKoch-backed group launches new ads on tax reform Healthcare wish lists: What moderates, conservatives want Overnight Healthcare: GOP infighting erupts over bill | How Republican governors could bring down ObamaCare repeal | Schumer asks Trump to meet with Dems MORE (R-Texas) laughing.

"I can't put it any better than Saturday Night Live put it last night," Cruz said on “Fox News Sunday.”

Republicans have criticized Obama's use of executive orders, saying that he is abusing his presidential authority.

The president issued executive orders last week that instruct authorities to only target their deportation efforts against undocumented workers with criminal records.

The orders also allow for 5 million undocumented workers to apply for delayed deportation.