Why is this not in history?

#!/bin/bash
# 
#
#  Run this periodically to clean up unneeded files
#    
clear
echo marlin | sudo -S apt -y update
echo marlin | sudo -S apt-get clean
echo marlin | sudo -S apt -y autoremove
echo 
echo "Sleeping 5 secs, then exiting."
sleep 5
kill -9 $PPID