Default How to make framaroot script

Is this code to install su binaries in phone throug script


Code:
cat /sdcard/myappneedsystem.apk > /system/app/myappneedsystem.apk
pm install /system/app/myappneedsystem.apk