Hm, never tired it before, I always have my startup scripts in my main project.
However with this setup, your startup script will be copied automatically to the Approot of the role. That's why no "Copy to output directory".
If we take a closer look to Define Startup Tasks for a Role, we will see a note:
The commandLine task is relative to the AppRoot\Bin folder for the
deployment. Environment variables are not expanded in the commandLine
value. If environment expansion is required, you can create a small
.cmd script that calls your startup task as cmd.exe, which expands the
environment variables.
Following that note, the Commandline for your script could look something like:
<WebRole name="CMSApp">
<Startup>
<Task commandLine="..\startup\Startup.cmd" >
</Task>
</Startup>
....
</WebRole>
And this should work. Because your content, as defined by the screenshot is in AppRoot\Startup\startup.cmd
. However I have not tested it personally.