Serialization issue resolved with transient for ShellScript class