$ 0 0 Solved Script permissions were changed to root Modified code to use ShellStream and su to root before executing