#!/bin/bash

if [[ "$#" -ne "2" ]]; then
    echo "Usage: new-screen-window window-title command"
    exit
fi

title=$1
command=$2

screen -X screen -t $title
screen -p $title -X stuff "$command"
