Updated to use public interface for SetStartupScript/GetStartupScript if it is
found, otherwise use the old interface.