This did not work for me because su asked for password. However, I was able to solve that by changing the command to
sudo su - pi -c "screen -dm -S pistartup ~/startup"
This did not work for me because su asked for password. However, I was able to solve that by changing the command to
sudo su - pi -c "screen -dm -S pistartup ~/startup"