Answer: Somnambulism
Explanation: Somnambulism is another term for sleepwalking. And it simply refers to when someone still performs motor actions like Walking around while still sleeping.
And it is what Scot was doing in the question, he was sleepwalking.