Added assembly reference "PresentationFramework"

Also changed batfile to use ~ in each variable reference