changed script execution command from ; to /n [enter], added asserts and custom error type handling for op system