Added 'runscpt' function