Shortcut for iPad to prevent ipad from sleeping when it is plugged in

Can someone help me create a shortcut

That when I plug in my iPad to charge, it will keep my iPad awake.