If you need to get the status of a vagrant machine you can run the following in a command window:
vagrant status aws --machine-readable | awk -F"," '{if ($3 == "state") print $4;}'
Will output:
running
if the machine is running or
not_created
if it is not.