Activate wordpress shortcode in text widget

When you are working with text widget and you can add any short code there it is not working in default widget text. so we have found solution of sidebar widget working with short code.
Just one step to use shortcode in sidbat text widget.

Add below code on your them function.php file and you are able to working shortcode and script in sidebar widget.