Extract wmf-beta-scap to sudo-withagent wrapper script

Change-Id: Id8541b7b28b33e31aaf60f49d1b76553909cae39